GitLab wurde aktualisiert. Dank regelmäßiger Updates bleibt das THM GitLab sicher und Sie profitieren von den neuesten Funktionen. Vielen Dank für Ihre Geduld.

Commit 91995909 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix #2375. Admin and owner can manage groups

parent 0bda2d5d
......@@ -107,9 +107,12 @@ def project_admin_rules
def group_abilities user, group
rules = []
rules << [
] if group.owner == user
# Only group owner and administrators can manage group
if group.owner == user || user.admin?
rules << [
......@@ -15,6 +15,7 @@
%th Path
%th Team Members
%th Owner
%th Last Commit
%th Edit
%th.cred Danger Zone!
......@@ -26,6 +27,8 @@
%span.monospace= project.path_with_namespace + ".git"
%td= project.users_projects.count
= link_to, [:admin, project.chief]
%td= last_commit(project)
%td= link_to 'Edit', edit_admin_project_path(project), id: "edit_#{dom_id(project)}", class: "btn small"
%td.bgred= link_to 'Destroy', [:admin, project], confirm: "REMOVE #{}? Are you sure?", method: :delete, class: "btn small danger"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment