Ability to manage and remove group as owner outside of admin area
This commit is contained in:
parent
591e094e06
commit
e6002bdaff
9 changed files with 117 additions and 8 deletions
|
@ -22,4 +22,10 @@
|
|||
= nav_link(path: 'groups#people') do
|
||||
= link_to "People", people_group_path(@group)
|
||||
|
||||
- if can?(current_user, :manage_group, @group)
|
||||
= nav_link(path: 'groups#edit') do
|
||||
= link_to edit_group_path(@group), class: "tab " do
|
||||
%i.icon-edit
|
||||
Edit Group
|
||||
|
||||
.content= yield
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue