Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Authassignment Table With 2 User Tables

$
0
0
Hi,

I have 2 DB tables for 2 very different set of users. I have just started to implement RBAC for these users.

Looking at the `authassignment` table it has the following tables:
- itemname
- userid
- bizrule
- data

When user 1 from my `sellers_table` gets assigned, there record will be:
- seller
- 1
- NULL
- N;

When user 1 from my `buyers_table` gets assigned, there record will be:
- buyer
- 1
- NULL
- N;

Could this be an issue when checking access. I.e - a seller could have access to a buyer action and visa versa purely because they have the same `userid` in the `authassignment` table??

???

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>