Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error: can't convert Module into String
- app/controllers/mailsend_controller.rb:2
- # controller
- class MailsendController < ApplicationController
- require Moduser
- before_filter :check_administrator_role
- #module Moduser
- def check_role(role)
- unless logged_in? && @current_user.has_role?(role)
- if logged_in?
- permission_denied
- else
- store_referer
- access_denied
- end
- end
- end
- def check_administrator_role
- check_role('moderator')
- end
Add Comment
Please, Sign In to add comment