News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

[SMF 2.0.2] How do I write new permissions?

Started by NanoSector, April 04, 2012, 10:37:06 AM

Previous topic - Next topic

All Colours Sam

you are declaring one of the permissions 2 times for the simple view:

$permissionList['membergroup']['rlem_do'] = array(true, 'rlem_classic', 'rlem_simple', 'rlem_simple');

just use

$permissionList['membergroup']['rlem_do'] = array(false, 'rlem_classic', 'rlem_simple');
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

NanoSector

Oh, from what I understood of the turorial that was the switch to have both at once. Guess I'll have to do it in two parts then.

Lets see if I can fix that then.
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

All Colours Sam

Yes, the first parameter is to use multiple options, in this case you don't need that.  It's possible to use it, but it's messy, it's always better to start with the basics, onces you have that, then use the multiple option.

Since the first parameter is false, you don't need that 4 parameter.
Oh, wouldn't it be great if I *was* crazy? ...then the world would be okay
Suki

NanoSector

Yay it works now :D

Thanks for all the help guys! :)
My Mods / Mod Builder - A tool to easily create mods / Blog
"I've heard from a reliable source that the Answer is 42. But, still no word on what the question is."

Advertisement: