mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-10-04 23:22:24 +00:00
- get list of all admin ids instead of using the one in $settings
This commit is contained in:
parent
b31300c807
commit
aff98f7ca4
|
@ -3,6 +3,7 @@
|
|||
// Copyright (C) 2002-2005 Markus Westphal
|
||||
// Copyright (C) 2006-2008 Malcolm Cowe
|
||||
// Copyright (C) 2010 Matteo Lucarelli
|
||||
// Copyright (C) 2011 Uwe Steinmann
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
|
@ -24,7 +25,13 @@ include("../inc/inc.Language.php");
|
|||
include("../inc/inc.ClassUI.php");
|
||||
include("../inc/inc.Authentication.php");
|
||||
|
||||
$categories = $dms->getAllKeywordCategories(array($user->getID(), $settings->_adminID));
|
||||
$allusers = $dms->getAllUsers();
|
||||
$userids = array($user->getID());
|
||||
foreach($allusers as $u) {
|
||||
if($u->isAdmin())
|
||||
$userids[] = $u->getId();
|
||||
}
|
||||
$categories = $dms->getAllKeywordCategories($userids);
|
||||
|
||||
UI::htmlStartPage(getMLText("use_default_keywords"));
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user