Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
RoleID in GDN_Role doubles everytime a new role is created
I've noticed something very odd with the version of Vanilla 2 that I'm integrating...
Whenever I create a new role, the RoleID for the new role is double the previous role id. Like this:
2, Guest
4, Applicant
8, Member role
16, Administrator
32, My new role
64, My other new role
...
131072, My last created role
The field is of type INT(11) ... no idea how big an INT that will allow.
Is this how it's supposed to work? Do I need to worry about the column reaching it's maximum allowed INT size/length?
Whenever I create a new role, the RoleID for the new role is double the previous role id. Like this:
2, Guest
4, Applicant
8, Member role
16, Administrator
32, My new role
64, My other new role
...
131072, My last created role
The field is of type INT(11) ... no idea how big an INT that will allow.
Is this how it's supposed to work? Do I need to worry about the column reaching it's maximum allowed INT size/length?
0
Comments
There was already discussion about it (difficult to migrate old board with over xx roles).
Do a search, you should find more info.
We'll look into this question during the coming few weeks and see if we think we can significantly improve on the way its done without impacting speed.
Vanilla Forums COO [GitHub, Twitter, About.me]
You can set custom "role permissions" for your application (without creating a new role) by using AfterGetSession event.