mirror of
https://github.com/e107inc/e107.git
synced 2025-08-10 16:46:50 +02:00
FIX check moderator permissions for thread-operations
Without admin permissions (member of user class 254) it was not possible to modify threads in the forum. This fix get the forum-moderator permissions by the threadId to modify this thread.
This commit is contained in:
@@ -971,18 +971,18 @@
|
||||
|
||||
function sc_adminoptions()
|
||||
{
|
||||
/*--
|
||||
if(!deftrue('BOOTSTRAP'))
|
||||
{
|
||||
return $this->sc_admin_icons;
|
||||
}
|
||||
if (MODERATOR)
|
||||
{
|
||||
return fadminoptions($this->var);
|
||||
}
|
||||
return '';
|
||||
--*/
|
||||
return (!deftrue('BOOTSTRAP') ? $this->sc_admin_icons() : ((MODERATOR) ? fadminoptions($this->var) : ''));
|
||||
if(!deftrue('BOOTSTRAP'))
|
||||
{
|
||||
return $this->sc_admin_icons();
|
||||
}
|
||||
else if (MODERATOR)
|
||||
{
|
||||
return fadminoptions($this->var);
|
||||
}
|
||||
else
|
||||
{
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user