Plugins getPermissions logic update.