Fix bitwise not

This commit is contained in:
Marcos Zuriaga 2016-10-03 18:55:34 +02:00
parent 276365364f
commit 5cfd481e63
No known key found for this signature in database
GPG key ID: 7D15585354D072FF
2 changed files with 2 additions and 2 deletions

View file

@ -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() {

View file

@ -46,7 +46,7 @@ class PermissionEntity extends Entity {
*/
public function removePermission($permission) {
$tmp = $this->getPermissions();
$tmp = $tmp & !$permission;
$tmp = $tmp & ~$permission;
$this->setPermissions($tmp);
}
}