Skip to content
Snippets Groups Projects
Commit ae581a6d authored by Jarka Košanová's avatar Jarka Košanová :palm_tree:
Browse files

Push frontend abilities from group repo settings controller

parent 99421abd
No related branches found
No related tags found
No related merge requests found
This commit is part of merge request !162208. Comments created here will be created in the context of that merge request.
......@@ -231,7 +231,7 @@ export default {
this.loading = true;
if (this.hasLicense) {
if (gon.abilities.adminProject) {
if (gon.abilities.adminProject || gon.abilities.adminGroup) {
Promise.all([
getDeployKeys(this.query),
getUsers(this.query),
......@@ -306,7 +306,7 @@ export default {
}
}
if (gon.abilities.adminProject) {
if (gon.abilities.adminProject || gon.abilities.adminGroup) {
this.deployKeys = deployKeysResponse.map((response) => {
const {
id,
......
......@@ -9,6 +9,10 @@ class RepositoryController < Groups::ApplicationController
before_action :authorize_access!, only: :show
before_action :define_deploy_token_variables, if: -> { can?(current_user, :create_deploy_token, @group) }
before_action do
push_frontend_ability(ability: :admin_group, resource: @group, user: current_user)
end
feature_category :continuous_delivery
urgency :low
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment