@@ -21,11 +21,11 @@ public function checkApproveUser($uid, $operated_on, $group)
21
21
22
22
$ role = $ this ->SQL ->getRole ($ uid , $ group );
23
23
24
- if ($ this ->SQL ->hasPermission ($ role , 'unity.admin ' ) || $ this ->SQL ->hasPermission ($ role , 'unity.admin_no_grant ' )) {
24
+ if ($ this ->SQL ->hasPerm ($ role , 'unity.admin ' ) || $ this ->SQL ->hasPerm ($ role , 'unity.admin_no_grant ' )) {
25
25
return true ;
26
26
}
27
27
28
- if (!$ this ->SQL ->hasPermission ($ role , 'unity.approve_user ' )) {
28
+ if (!$ this ->SQL ->hasPerm ($ role , 'unity.approve_user ' )) {
29
29
return false ;
30
30
}
31
31
@@ -46,11 +46,11 @@ public function checkDenyUser($uid, $operated_on, $group)
46
46
47
47
$ role = $ this ->SQL ->getRole ($ uid , $ group );
48
48
49
- if ($ this ->SQL ->hasPermission ($ role , 'unity.admin ' ) || $ this ->SQL ->hasPermission ($ role , 'unity.admin_no_grant ' )) {
49
+ if ($ this ->SQL ->hasPerm ($ role , 'unity.admin ' ) || $ this ->SQL ->hasPerm ($ role , 'unity.admin_no_grant ' )) {
50
50
return true ;
51
51
}
52
52
53
- if (!$ this ->SQL ->hasPermission ($ role , 'unity.deny_user ' )) {
53
+ if (!$ this ->SQL ->hasPerm ($ role , 'unity.deny_user ' )) {
54
54
return false ;
55
55
}
56
56
@@ -75,11 +75,11 @@ public function checkGrantRole($uid, $group, $role)
75
75
76
76
$ user_role = $ this ->SQL ->getRole ($ uid , $ group );
77
77
78
- if ($ this ->SQL ->hasPermission ($ user_role , 'unity.admin ' ) || $ this ->SQL ->hasPermission ($ user_role , 'unity.admin_no_grant ' )) {
78
+ if ($ this ->SQL ->hasPerm ($ user_role , 'unity.admin ' ) || $ this ->SQL ->hasPerm ($ user_role , 'unity.admin_no_grant ' )) {
79
79
return true ;
80
80
}
81
81
82
- if (!$ this ->SQL ->hasPermission ($ user_role , 'unity.grant_role ' )) {
82
+ if (!$ this ->SQL ->hasPerm ($ user_role , 'unity.grant_role ' )) {
83
83
return false ;
84
84
}
85
85
@@ -89,7 +89,7 @@ public function checkGrantRole($uid, $group, $role)
89
89
return false ;
90
90
}
91
91
92
- return true ;
92
+ return true ;
93
93
}
94
94
95
95
public function checkRevokeRole ($ uid , $ group , $ role )
@@ -104,11 +104,11 @@ public function checkRevokeRole($uid, $group, $role)
104
104
105
105
$ user_role = $ this ->SQL ->getRole ($ uid , $ group );
106
106
107
- if ($ this ->SQL ->hasPermission ($ user_role , 'unity.admin ' ) || $ this ->SQL ->hasPermission ($ user_role , 'unity.admin_no_grant ' )) {
107
+ if ($ this ->SQL ->hasPerm ($ user_role , 'unity.admin ' ) || $ this ->SQL ->hasPerm ($ user_role , 'unity.admin_no_grant ' )) {
108
108
return true ;
109
109
}
110
110
111
- if (!$ this ->SQL ->hasPermission ($ user_role , 'unity.revoke_role ' )) {
111
+ if (!$ this ->SQL ->hasPerm ($ user_role , 'unity.revoke_role ' )) {
112
112
return false ;
113
113
}
114
114
@@ -118,6 +118,6 @@ public function checkRevokeRole($uid, $group, $role)
118
118
return false ;
119
119
}
120
120
121
- return true ;
121
+ return true ;
122
122
}
123
- }
123
+ }
0 commit comments