Draft: Add Security Manager role to frontend access level constants
What does this MR do?
This MR exposes the Security Manager role in frontend access level constants and helpers, building on the GraphQL schema support added in !582642.
Changes included
- Add Security Manager constants to
app/assets/javascripts/access_level/constants.js:-
ACCESS_LEVEL_SECURITY_MANAGER_INTEGER(25) -
ACCESS_LEVEL_SECURITY_MANAGER_STRINGconstant - Add to
BASE_ROLESarray with description - Add to access level mapping objects
-
- Gate Security Manager visibility behind
securityManagerRoleEnabledfeature flag - Expose feature flag in
lib/gitlab/gon_helper.rbfor frontend access - Add Security Manager to
localized_access_nameshelper inprojects_helper.rb - Add localization string for "Security Manager".
Feature flag
All Security Manager additions are conditionally included based on window.gon?.features?.securityManagerRoleEnabled, which checks
Gitlab::Security::SecurityManagerConfig.enabled? on the backend.
Related issue
Closes #582644
Changelog
Changelog: added EE: true