Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit f72eec9

Browse files
WardormeurDanielBrierton
authored andcommitted
Ensure perms for saving a profile is self
register doesnt use this endpoint if you're concerned
1 parent 0f8a9c6 commit f72eec9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

config/perm/profiles.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ module.exports = function(){
44
return {
55
'create': [{
66
role: 'basic-user',
7+
customValidator: [{
8+
role: 'cd-users',
9+
cmd: 'is_self'
10+
}]
11+
}, {
12+
role: 'basic-user',
13+
customValidator: [{
14+
role: 'cd-users',
15+
cmd: 'is_parent_of'
16+
}]
717
}],
818
'user_profile_data': [{
919
role: 'none',

0 commit comments

Comments
 (0)