移除权限。

removePermission(permission)

为所有用户移除权限。

参数

  • permission
    权限名

removePermission(permission, authority)

  • permission
    权限名
  • authority
    用户或组

代码例

var node = companyhome.childByNamePath("TEST_FILE_0.TXT");

node.setPermission("Read", "fred.bloggs");
node.setPermission("Delete", "Admin");
node.setPermission("Write", "GROUP_EVERYONE");
node.setPermission("Delete", "GROUP_ALFRESCO_ADMINISTRATORS");

//...

node.removePermission("Read", "fred.bloggs");

model.permissions = node.getPermissions();

上述代码将会节点设置以下权限:

ALLOWED;Admin;Delete

ALLOWED;GROUP_EVERYONE;Write

ALLOWED;GROUP_ALFRESCO_ADMINISTRATORS;Delete  
文档更新时间: 2019-01-11 16:27   作者:凌云文档