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 7059141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:11:48+00:00 2026-05-28T04:11:48+00:00

I am implementing role based access control using yii framework for the application mentioned

  • 0

I am implementing role based access control using yii framework for the application mentioned in the Agile web application development using yii framework book.I have implemented every thing up to page number 189.

page number 189 says that following method can be used to check whether user is allowed to perform some action or not.

If( Yii::app()->user->checkAccess(‘createIssue’)) {
//perform needed logic }

but this method always return false for users who have been assigned to createIssue operation

following is the database diagram for RBAC

enter image description here

i am linking UserID and role for authassignment table using following command.

$auth=Yii::app()->authManager; $auth->assign(‘member’,1);

As you can see my user table and authassignment table does not have direct relationship.

And i have configured main.php file in configuration folder

These are the all we have done so far and could any body share your knowledge with me if any thing is missing here. Thanks in advance for any help.

  • 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-28T04:11:49+00:00Added an answer on May 28, 2026 at 4:11 am

    Come on, man! Of course there must be a direct relationship between users and assigments. In the following piece of code:

    $auth=Yii::app()->authManager; $auth->assign('member',1)
    

    ‘member’ belongs to authiments, and ‘1’ is the id of the user being assigned with that role. “userid”, in the “authassigment” table, must point to users table.

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

Sidebar

Related Questions

I'm building a webapp with role based access control using Acegi (Spring) security. So
I'm implementing role based security using Microsoft's membership and role provider. The theoretical problem
I've been reading about Role Based Access Control and I am trying to figure
HI, I am implementing a custom role provider in my nhibernate application I have
I'm implementing system which uses role based access to different methods in classes. For
I have been working on implementing a (1) server, (n) worker role servers setup
I'm working on Spring based application with Spring Security. I have users with different
I believe implementing security for a JSF application through <login-config> + <security-constraint> + <security-role>
A lot of articles online on role based access speak of applying something like
We have a web application where we need to create functionality to manage users,

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.