Skip to content

Commit

Permalink
group admin can only see assign member button of groups that they adm…
Browse files Browse the repository at this point in the history
…inistrate
  • Loading branch information
giosakti committed Dec 16, 2018
1 parent aabe263 commit 85520f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/groups/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
br
= "*This group does not have any group members" if @group.users.count == 0
br
- if current_user.admin? || current_user.group_admin?
- if current_user.admin or @group.admin?(current_user)
= form_tag add_user_to_group_path, method: :post do
.row
.col
Expand Down

0 comments on commit 85520f7

Please sign in to comment.