mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-11 23:54:43 +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
|
private
|
||||||
|
|
||||||
def check_create_team_permission
|
def check_create_team_permission
|
||||||
can_create_teams?
|
render_403 unless can_create_teams?
|
||||||
end
|
end
|
||||||
|
|
||||||
def load_user
|
def load_user
|
||||||
|
|
Loading…
Add table
Reference in a new issue