lockPermissions