update all teams code. refactoring and some corrections
This commit is contained in:
parent
7658f8c151
commit
18bd1c9d30
35 changed files with 332 additions and 283 deletions
|
@ -5,11 +5,7 @@ class Teams::ApplicationController < ApplicationController
|
|||
protected
|
||||
|
||||
def user_team
|
||||
@user_team ||= UserTeam.find_by_path(params[:team_id])
|
||||
end
|
||||
|
||||
def authorize_manage_user_team!
|
||||
return access_denied! unless can?(current_user, :manage_user_team, user_team)
|
||||
@team ||= UserTeam.find_by_path(params[:team_id])
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue