Project

General

Profile

« Previous | Next » 

Revision 355bce36

Added by Ohad Levy over 10 years ago

fixes #3930 - refactoring of edit_self implementation.

View differences:

app/controllers/concerns/foreman/controller/authentication.rb
end
def authorized
User.current.allowed_to?(
:controller => params[:controller].gsub(/::/, "_").underscore,
:action => params[:action])
User.current.allowed_to?(params.slice(:controller, :action, :id))
end
def require_login

Also available in: Unified diff