mirror of
https://github.com/nextcloud/passman.git
synced 2025-10-05 11:15:01 +08:00
Fix bitwise not
This commit is contained in:
parent
276365364f
commit
5cfd481e63
2 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ angular.module('passmanApp').factory('SharingACL', function(){
|
|||
* @param permission
|
||||
*/
|
||||
ACL.prototype.removePermission = function(permission){
|
||||
this.permission = this.permission & !permission;
|
||||
this.permission = this.permission & ~permission;
|
||||
};
|
||||
|
||||
ACL.prototype.getAccessLevel = function() {
|
||||
|
|
|
@ -46,7 +46,7 @@ class PermissionEntity extends Entity {
|
|||
*/
|
||||
public function removePermission($permission) {
|
||||
$tmp = $this->getPermissions();
|
||||
$tmp = $tmp & !$permission;
|
||||
$tmp = $tmp & ~$permission;
|
||||
$this->setPermissions($tmp);
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue