Yii Framework Forum: Two Tables With Users(Admins Webusers) Rights. Is It Possible? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Two Tables With Users(Admins Webusers) Rights. Is It Possible? Rate Topic: *---- 1 Votes

#1 User is offline   opus 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 08-July 12
  • Location:Russia

Posted 10 November 2012 - 02:54 AM

I want two tables for users in my project:
1. for admins
2. for webusers

Is there any way to accomplish this while using the rights module? It seems like rights stores user id's in the table for assigning a role to a user. It can lead to a duplication of id's in the rigths related tables ect.
Any ideas?
0

#2 User is offline   luc 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 211
  • Joined: 22-June 10
  • Location:france

Posted 11 November 2012 - 04:30 PM

Hi,
one User table is enough :rolleyes:
Rights extension is a backend module for managing Role Based Access Controll (RBAC) where you can define a "webuser" and a "adminuser" roles. Users are assigned to roles through the AuthAssignment table (and Rights extension do that quiet well).

But maybe you "have to" deal with two different user tables ?
Hey Ho !
Let's go !
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users