mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-11 15:45:34 +08:00
add render 403 for create team permission
This commit is contained in:
parent
6c4514f550
commit
aba426091c
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ module Users
|
|||
private
|
||||
|
||||
def check_create_team_permission
|
||||
can_create_teams?
|
||||
render_403 unless can_create_teams?
|
||||
end
|
||||
|
||||
def load_user
|
||||
|
|
Loading…
Add table
Reference in a new issue