Displaying 1 result from an estimated 1 matches for "modulepermiss".
2006 Nov 04
0
filter function with parameter
...thorize?(@session[:backend])
      return true
    end
    # store current location so that we can
    # come back after the user logged in
    store_location
    # call overwriteable reaction to unauthorized access
    access_denied
    return false
  end
an user has a role, and a role has many modulepermissions
like module: books , actions: create, read, edit, .....
in my controller i have this
before_filter :module_backend_required(''users'',''update''), :only => [ 
:edit, :update ]
 =>> syntax error on ''users'',''update''
w...