Module: UserPatch::InstanceMethods
- Defined in:
- lib/user_patch.rb
Instance Method Summary collapse
-
#allowed_to_with_extended_wiki_filter?(action, context, options = {}) ⇒ Boolean
Fakes authorizing a request to the original WikiController to inherit the permissions set on it, instead of keeping two sets of permissions for PDF export of a wiki page and viewing the HTML version.
Instance Method Details
#allowed_to_with_extended_wiki_filter?(action, context, options = {}) ⇒ Boolean
Fakes authorizing a request to the original WikiController to inherit the permissions set on it, instead of keeping two sets of permissions for PDF export of a wiki page and viewing the HTML version.
14 15 16 17 18 19 20 |
# File 'lib/user_patch.rb', line 14 def allowed_to_with_extended_wiki_filter?(action, context, ={}) if making_extended_wiki_request?(action) allowed_to_without_extended_wiki_filter?(masqueraded_wiki_show_request(action), context, ) else allowed_to_without_extended_wiki_filter?(action, context, ) end end |