mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-04-19 20:09:14 +03:00
Remove this if-statement, we don't need it anymore
This commit is contained in:
parent
ca09122c7f
commit
c16a85547c
1 changed files with 0 additions and 9 deletions
|
@ -76,15 +76,6 @@ if (!is_logged_in()) {
|
|||
exit(0);
|
||||
}
|
||||
|
||||
if (is_adminuser()) {
|
||||
foreach (get_all_users() as $user) {
|
||||
$userlist[] = "'" . $user['emailaddress'] . "':'" . $user['emailaddress'] . "'";
|
||||
}
|
||||
|
||||
$ulist = ',';
|
||||
$ulist .= join(',', $userlist);
|
||||
}
|
||||
|
||||
foreach ($templates as $template) {
|
||||
if (is_adminuser() or (isset($template['owner']) && $template['owner'] == get_sess_user()) or ($template['owner'] == 'public')) {
|
||||
$templatelist[] = "'" . $template['name'] . "':'" . $template['name'] . "'";
|
||||
|
|
Loading…
Add table
Reference in a new issue