Wedge

Public area => The Pub => Bug reports => Topic started by: Arantor on September 18th, 2012, 04:22 AM

Title: Permissions UI does not honour illegal permissions properly
Post by: Arantor on September 18th, 2012, 04:22 AM
There is, in the depths of the permissions code a function to set which permissions should not ever be shown to guests.

But it does not honour own/any properly - so even when an _any permission is listed to be denied to guests, it still shows up in the admin panel, for example view_ip_address_any is in the deny-to-guests list but still shows in the guests permissions area.

I cannot confirm whether this is an SMF bug or not, all the cases in SMF itself only ever extend _own permissions to be denied to guests (because they can't have an _own)

But it needs fixing.

(Also, permissions + hooking are sort of borked, I really need to extend it in the plugin-info.xml file to fix other issues related to it but that's something else entirely.)
Title: Re: Permissions UI does not honour illegal permissions properly
Post by: Nao on September 18th, 2012, 04:02 PM
I'd tend to say --- anything that's not 'obvious' may eventually be 'reported' in later stable releases, and fixed at that time.
I've lived long enough to know that there's something more important than taking one's time to release a flawless product -- it's taking one's time to release a product that most people see as flawless, but in a shorter time :P
Title: Re: Permissions UI does not honour illegal permissions properly
Post by: Arantor on September 18th, 2012, 05:05 PM
I gotta do other things with the permissions stuff anyway, and last night I wrote up how I want to extend the permissions code from plugin-info.xml files, so I can probably fix this along the way.