Skip to content

Commit 5acf61d

Browse files
AntSworDleeyeh
authored andcommitted
属性删除错误
如果`permissions`为空,应该删除 `this.permissionsById[userId]`
1 parent c0b7c98 commit 5acf61d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/acl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ module.exports = function(AV) {
8383
} else {
8484
delete permissions[accessType];
8585
if (_.isEmpty(permissions)) {
86-
delete permissions[userId];
86+
delete this.permissionsById[userId];
8787
}
8888
}
8989
};

0 commit comments

Comments
 (0)