Abilities extended. Resources security improved
This commit is contained in:
parent
af82b6773b
commit
8c40aab120
16 changed files with 51 additions and 52 deletions
|
@ -48,6 +48,10 @@ class ApplicationController < ActionController::Base
|
|||
return render_404 unless can?(current_user, action, project)
|
||||
end
|
||||
|
||||
def authorize_code_access!
|
||||
return render_404 unless can?(current_user, :download_code, project)
|
||||
end
|
||||
|
||||
def access_denied!
|
||||
render_404
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue