Use hasPermissions() in plugins/check/