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

  • SEARCH
  • Home
  • 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 7933389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:19:04+00:00 2026-06-03T21:19:04+00:00

I am now trying to develop a website under the Yii framework and Role-Based

  • 0

I am now trying to develop a website under the Yii framework and Role-Based Access Control(RBAC) is needed in the program. I read from the guide that filter can be used for RBAC, but I wonder what should I do if the administrators and users are store in two tables? Namely if there are two tables in the database, one for admins and on for users, how should I implemented access control? 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-06-03T21:19:06+00:00Added an answer on June 3, 2026 at 9:19 pm

    I think this is not possible out of the box. When you check the db schema of authassignment, you will see that it has a userid field, which relates to your users table. If you have two different tables, you would need another unique identifier in the auth table. Is it absolutely necessary that you have two different tables for your users? Actually, RBAC is very useful for separating concerns. So you have one user table, but you can assign your users different roles such as “admin”, “editor” etc. If you have two different user tables, what do you do if a user becomes an admin? This is complexity that you shouldn’t have to handle. If you absolutely have to, you will have to extend the RBAC functionality to make it possible to refer tp different tables.

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

Sidebar

Related Questions

I am learning Yii and am trying to develop RBAC now the issue is
I'm trying to develop a desktop program, unifying java and javafx. For now, I
i usually develop for iPhone. But now trying to make a pong game in
I am new in ios development .Now i am trying to develop an ipad
I'm trying to develop a pretty simple (for now) wrapper class around int ,
I'm new to Codeigniter and I'm trying to develop a simple website with a
I am trying to develop auto horizontal scrolling for our website using - jQuery.ScrollTo
I'm currently trying to develop a messaging system for my website. So far the
I am trying to develop a database model for a recruitment website and I
I'm trying to pick a web framework that is Java based to start a

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.