Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: ttrbbr on March 28, 2021, 12:15:32 PM

Title: admin menu available to all members when they log in
Post by: ttrbbr on March 28, 2021, 12:15:32 PM
I've moved a SMF 2.0.12 forum to new hosting and upgraded with patches to 2.0.18. Since the upgrade, all members who log in have access to the admin menu and have admin permissions. I've tried changing from a customized theme to Default Theme - Core but this didn't clear the problem. Solutions that will work or that I should try?
Title: Re: admin menu available to all members when they log in
Post by: Illori on March 28, 2021, 12:42:09 PM
check if your host has caching like varnish installed and enabled, if so have them disable it.
Title: Re: admin menu available to all members when they log in
Post by: ttrbbr on March 28, 2021, 01:21:52 PM
Checked with hosting tech support. They checked and then double checked: no caching like varnish installed.
Title: Re: admin menu available to all members when they log in
Post by: Kindred on March 28, 2021, 01:38:09 PM
Did you somehow delete the 0 count post count based group?
Title: Re: admin menu available to all members when they log in
Post by: ttrbbr on March 28, 2021, 02:09:48 PM
If I understand the question correctly, no, I don't think I did.
Title: Re: admin menu available to all members when they log in
Post by: Deaks on March 28, 2021, 02:12:09 PM
have a look in your subs.php and make sure that the admin is set to is_admin
Title: Re: admin menu available to all members when they log in
Post by: ttrbbr on March 28, 2021, 02:26:37 PM
Not seeing is_admin in Subs.php
Title: Re: admin menu available to all members when they log in
Post by: Illori on March 28, 2021, 03:09:14 PM
What is a phpinfo() file? (http://wiki.simplemachines.org/smf/What_is_a_phpinfo()_file)

do a phpinfo page and confirm there is no caching running on your server.

also in subs.php you are looking for

'admin' => array(
'title' => $txt['admin'],
'href' => $scripturl . '?action=admin',
'show' => $context['allow_admin'],
if that is in place then normal members should not see the admin button.

do any of your users see another users name in the header when they are logged in? if so that means there is some server level cache running and that is causing your issue.
Title: Re: admin menu available to all members when they log in
Post by: ttrbbr on March 28, 2021, 03:51:39 PM
Working with online lists of server caching software (broad and linux specific), I find no caching software in phpinfo()
'admin' => array  looks as you indicated in subs.php
I've no reports of incorrect usernames in header.
A bit more detail I'm noticing: members see Admin in the menu but no actual admin functions are available and no sub-menu. 'Members' has functioning sub-menu (View the memberlist and Search for Member).
Title: Re: admin menu available to all members when they log in
Post by: Sir Osis of Liver on March 28, 2021, 04:45:21 PM
Do guests see the button?
Title: Re: admin menu available to all members when they log in
Post by: ttrbbr on March 28, 2021, 04:57:14 PM
solution found; simple once found: error mine.
I reviewed the permissions for "Regular Members".
"Manage and assign membergroups" was selected. Because it is an administrative duty, Admin was in the menu when a member logged in.
All set now.
Thx all for help!