mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 00:54:49 +02:00
Fix for bbarea GUI when limited news perms are set for the current user.
This commit is contained in:
@@ -1467,11 +1467,12 @@ class news_form_ui extends e_admin_form_ui
|
||||
|
||||
if(!getperms('0') && !check_class($pref['news_editauthor']))
|
||||
{
|
||||
|
||||
$auth = ($curVal) ? intval($curVal) : USERID;
|
||||
$sql->select("user", "user_name", "user_id={$auth} LIMIT 1");
|
||||
$row = $sql->fetch();
|
||||
$text .= "<input type='hidden' name='news_author' value='".$auth.chr(35).$row['user_name']."' />";
|
||||
$text .= "<a href='".e107::getUrl()->create('user/profile/view', 'name='.$row['user_name'].'&id='.$curVal."'>".$row['user_name'])."</a>";
|
||||
$text .= "<a href='".e107::getUrl()->create('user/profile/view', 'name='.$row['user_name'].'&id='.$curVal)."'>".$row['user_name']."</a>";
|
||||
}
|
||||
else // allow master admin to
|
||||
{
|
||||
@@ -1683,6 +1684,7 @@ require_once(e_ADMIN."auth.php");
|
||||
e107::getAdminUI()->runPage();
|
||||
|
||||
|
||||
|
||||
if(!e_AJAX_REQUEST)
|
||||
{
|
||||
require_once("footer.php");
|
||||
|
@@ -2327,7 +2327,7 @@ class e_form
|
||||
$options_off = array_merge($options, array('class' => 'e-expandit-off'));
|
||||
}
|
||||
|
||||
if(deftrue('e_DEBUG') && e_ADMIN_AREA === true)
|
||||
if(e_ADMIN_AREA === true)
|
||||
{
|
||||
$options['switch'] = 'small';
|
||||
|
||||
|
Reference in New Issue
Block a user