You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-11-26 11:23:04 +03:00
merged overview.php into list-domain.php and list-virtual.php
list-domain.php: - added several admin/superadmin switches and permission checks - merged GET and POST code - Note: still different templates for superadmins (admin_list-domain.tpl) and admins (overview-get.tpl) because of large layout difference list-virtual.php: - added several admin/superadmin switches and permission checks - added check for admins without any domains (redirects to domain list, which can handle this situation) - migrated FIXME from overview.php -> David, please review the query and remove the FIXME afterwards overview.php: - DELETED - no longer needed overview.tpl: - RENAMED overview.tpl to list-virtual.tpl - removed admin/superadmin filename switch - removed $incpath switch for images menu.tpl: - menu for domain admins now has "domain list" and "virtual list" instead of "overview" delete.php, edit-active.php, edit-alias.php, edit-mailbox.php, search.php: - changed redirect to list-virtual.php overview-get.tpl: - changed link to list-virtual.php main.tpl: - changed overview link to list-domain.php git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@181 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
@@ -118,11 +118,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
|
||||
{
|
||||
db_log ($SESSID_USERNAME, $fDomain, 'edit_alias', "$fAddress -> $goto");
|
||||
|
||||
if (authentication_has_role('global-admin')) {
|
||||
header ("Location: list-virtual.php?domain=$fDomain");
|
||||
} else {
|
||||
header ("Location: overview.php?domain=$fDomain");
|
||||
}
|
||||
header ("Location: list-virtual.php?domain=$fDomain");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user