forked from GNUsocial/gnu-social
add a break to switch in hasRight()
This commit is contained in:
parent
9d026600a9
commit
144f817109
@ -710,6 +710,7 @@ class User extends Memcached_DataObject
|
||||
break;
|
||||
case Right::CONFIGURESITE:
|
||||
$result = $this->hasRole(User_role::ADMINISTRATOR);
|
||||
break;
|
||||
default:
|
||||
$result = false;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user