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

Commit a7dff27

Browse files
Fixed definition of parent-guardian usertype
1 parent d44ff0e commit a7dff27

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

config/perm/users.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = function(){
1313
}]
1414
},
1515
{ role: 'basic-user',
16-
userType: 'parent',
16+
userType: 'parent-guardian',
1717
customValidator: [{
1818
role: 'cd-users',
1919
cmd: 'is_parent_of',
@@ -34,7 +34,7 @@ module.exports = function(){
3434
}]
3535
},
3636
{ role: 'basic-user',
37-
userType: 'parent',
37+
userType: 'parent-guardian',
3838
customValidator: [{
3939
role: 'cd-users',
4040
cmd: 'is_parent_of'
@@ -63,6 +63,12 @@ module.exports = function(){
6363
{ role: 'cd-users',
6464
cmd: 'is_self'
6565
}]
66+
}, {
67+
role: 'basic-user',
68+
customValidator: [
69+
{ role: 'cd-users',
70+
cmd: 'is_parent_of'
71+
}]
6672
}, {
6773
role: 'basic-user',
6874
userType: 'champion',
@@ -78,6 +84,12 @@ module.exports = function(){
7884
{ role: 'cd-users',
7985
cmd: 'is_self'
8086
}]
87+
}, {
88+
role: 'basic-user',
89+
customValidator: [
90+
{ role: 'cd-users',
91+
cmd: 'is_parent_of'
92+
}]
8193
}, {
8294
role: 'basic-user',
8395
userType: 'champion',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"async": "0.9.0",
2828
"cp-i18n-lib": "git+https://github.com/CoderDojo/cp-i18n-lib.git",
2929
"cp-logs-lib": "git://github.com/CoderDojo/cp-logs-lib#1.1.0",
30-
"cp-permissions-plugin": "git://github.com/CoderDojo/cp-permissions-plugin#1.0.2",
30+
"cp-permissions-plugin": "git://github.com/CoderDojo/cp-permissions-plugin#1.0.3",
3131
"cuid": "1.2.5",
3232
"ejs": "1.0.0",
3333
"jed": "1.1.0",

0 commit comments

Comments
 (0)