Add access control in public section to users teams
This commit is contained in:
parent
dcea52203d
commit
7534154b44
3 changed files with 11 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
class Teams::MembersController < Teams::ApplicationController
|
||||
# Authorize
|
||||
before_filter :authorize_manage_user_team!, only: [:new, :edit]
|
||||
skip_before_filter :authorize_manage_user_team!, only: [:index]
|
||||
|
||||
def index
|
||||
@members = @user_team.members
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue