lib: Fix User::can()
This commit is contained in:
parent
9ac9342107
commit
94193abdc0
|
@ -428,11 +428,9 @@ class User
|
|||
if ($wildcard !== false) {
|
||||
if (substr($permission, 0, $wildcard) === substr($permitted, 0, $wildcard)) {
|
||||
return true;
|
||||
} else {
|
||||
if ($permission === $permitted) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} elseif ($permission === $permitted) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue