PDA

View Full Version : How to Add New adminpermission options


jeofmoyster
01-10-2007, 01:46 AM
I'm building a new product that requires some administrators have access to it and some not - determined by adminpermissions bit fields.

This is my bitfield_PRODUCT.xml:


<?xml version="1.0" encoding="ISO-8859-1"?>
<bitfields product="PRODUCTID">
<bitfielddefs>
<group name="ugp">
<group name="adminpermissions">
<bitfield name="myspecificpermission" phrase="PRODUCTID_bitfield_myspecificpermission">1048576</bitfield>
</group>
</group>
</bitfielddefs>
</bitfields>

And while it does add the option to the list of adminpermissions, it seems to take no effect. When it's selected, it activates the last default adminpermission (products and plugins) but I can't seem to make an all-new adminpermission bitfield. How can I do this?

Thanks :)

noppid
01-10-2007, 04:39 PM
It sounds like 1048576 is in use and you may have to go up to the next square. Just a guess, I didn't look it up.

jeofmoyster
01-10-2007, 06:32 PM
the problem is that 1048576 is several 'squares' higher than the last one. I figured that may be the case and so i just kept doubling it....