Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: aegersz on February 04, 2018, 08:11:31 AM

Title: Odd Administrator Permissions value
Post by: aegersz on February 04, 2018, 08:11:31 AM
i'm not sure how to best track down why this is happening so any help would be appreciated:


Name               Member    Permissions Modify
Administrator (?) 5       1


Note the "1" instead of "(all)"
Title: Re: Odd Administrator Permissions value
Post by: Aleksi "Lex" Kilpinen on February 04, 2018, 11:34:57 PM
Do you have any idea when that appeared? What might have changed around then?
Title: Re: Odd Administrator Permissions value
Post by: aegersz on February 04, 2018, 11:53:52 PM
i wish i knew but it's not impacting anything.

i assume a permission got in there - the one i thought, i removed but no luck.

just a mystery right now

I know that i should check the database but don't know where the permissions are stored - i guess i should put in the effort and review the source and look into the DB but if i can take a shortcut, then all the better.

If it's too time consuming then i will work it out myself - which mod stuck something where it shouldn't have ?!

so all good if you guys are too busy.
Title: Re: Odd Administrator Permissions value
Post by: Illori on February 05, 2018, 05:09:03 AM
have you recently installed a mod? i wonder if one or more mods set permissions incorrectly and caused this.
Title: Re: Odd Administrator Permissions value
Post by: aegersz on February 05, 2018, 05:15:17 AM
not really but i'm always messing around with mods.

it may even be a remnant of an earlier version of one also.

what tables hold the permissions in the DB ? can you divulge that ? i will poke around tonight anyway.

i love an innocuous mystery  ::)
Title: Re: Odd Administrator Permissions value
Post by: Aleksi "Lex" Kilpinen on February 05, 2018, 05:36:21 AM
smf_permissions hold the membergroup specific permissions.
Title: Re: Odd Administrator Permissions value
Post by: aegersz on February 05, 2018, 06:24:48 AM
now i feel silly ! sorry to waste your time there.

but lots of thanks ! will let you know what i find.
Title: Re: Odd Administrator Permissions value
Post by: aegersz on February 05, 2018, 07:57:49 AM
aha ! it's from the "OS & Browser Detection" mod that i uninstalled but probably didn't delete the DB data.

problem solved.

thanks for your help, i was, as usual, looking for a complexity that wasn't there