![]() |
Usergroup bitfield permissions - conflict issue ?
I need some help trying to figure this out.
I use the following in my includes/init.php for my hack : PHP Code:
PHP Code:
Or am I mistaken, because it seems it does matter. ( the bitfield name ) Any help would be most appreciated :) |
no, it won't conflict until the array name is not the same. (and hehe, you can't bold anything in [php])
this is simple but why wouldn't you try it before asked ^^ ? |
Like i said, it seems it does matter ( because I tried it )
Now I am wondering, why should it ?? :( |
It does matter. All bitfield permissions are automatically set during init. In the init these are still 2 different permissions, but both are set to be used as 'CANVIEWARTICLES'. This means you could still test against the array if you have permissions, but you can't use CANVIEWARTICLES anymore.
|
So we're saying that such an if conditional in the template :
Code:
<if condition="$permissions['vbarticlespermissions'] & CANVIEWARTICLES"> Very odd isn't it, then why bother putting them in their own groups in the first place ?? |
anyone ?
|
They are put in their own groups because each group is stored as a seperate column in the database.
Putting them all together would require huge permission values. |
All times are GMT. The time now is 08:20 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|