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;
|
break;
|
||||||
case Right::CONFIGURESITE:
|
case Right::CONFIGURESITE:
|
||||||
$result = $this->hasRole(User_role::ADMINISTRATOR);
|
$result = $this->hasRole(User_role::ADMINISTRATOR);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
$result = false;
|
$result = false;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user