Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6247995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T12:58:35+00:00 2026-05-24T12:58:35+00:00

I am using check authorization in the application controller so every action will require

  • 0

I am using “check authorization” in the application controller so every action will require a permission. I’m starting with giving me, the superadmin :=], permissions to manage all. I thought manage all would give me access to the whole app without naming a resource.

user model:

  def role?(role)
    roles.include? role.to_s
  end

application controller:

check_authorization

cancan’s ability model:

  def initialize(user)
    if user.role? :superadmin
      can :manage, :all
    end
  end

error message:

This action failed the check_authorization because it does not authorize_resource. Add skip_authorization_check to bypass this check.

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T12:58:35+00:00Added an answer on May 24, 2026 at 12:58 pm

    As far as I am aware, you’re going to need to call authorize_resource in your controller as a before filter so that this works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the railscasts authentication http://railscasts.com/episodes/250-authentication-from-scratch authorization. How can the edit user profile check
Is there a way to perform data validation using CHECK constraints in t-sql and
I'm using this to check for the availability of a URL: $fp = fsockopen($url,
I am using SVN+SSH to check out a working copy of repository from an
We are using ankhsvn to check in our .net code, however I have two
So I've been using InstantRails to check out Ruby on rails. I've been using
I'd like to check ancestry using two jQuery objects. They don't have IDs, and
Hi there im using Linq for check if two user fields correspond for an
I am wondering what methods people are using for validating check boxes in ASP.NET
I've got this value '0310D45' I'm using isnumeric to check if values are numeric

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.