ban  "setPermissions" function