mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00:00
[ticket/10186] UCP signature panel displays when not authed for signatures
The signature panel link was displayed even when a user did not have the auths to create/edit their signature. Clicking on the link gave a trigger_error of "Not authorised to have a signature". Hide the link when user does not have permissions to edit their signature. PHPBB3-10186
This commit is contained in:
parent
0d407f10d0
commit
f6fa52540c
1 changed files with 6 additions and 0 deletions
|
@ -314,6 +314,12 @@ if (!$config['allow_topic_notify'] && !$config['allow_forum_notify'])
|
||||||
$module->set_display('main', 'subscribed', false);
|
$module->set_display('main', 'subscribed', false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Do not display signature panel if not authed to do so
|
||||||
|
if (!$auth->acl_get('u_sig'))
|
||||||
|
{
|
||||||
|
$module->set_display('profile', 'signature', false);
|
||||||
|
}
|
||||||
|
|
||||||
// Select the active module
|
// Select the active module
|
||||||
$module->set_active($id, $mode);
|
$module->set_active($id, $mode);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue