You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-07-31 10:04:20 +03:00
model/DomainHandler.php:
- set $domain_field to enable domain permission handling list-domain.php: - use permission handling of DomainHandler. This means: - no need to call list_domains_for_admin() - no longer hand over SQL sniplets - much easier handling for superadmins and "simulate admin" mode - 14 lines less code for permission handling etc. - remove superfluous/outdated header comments - move $smarty_assign('select_options') to global section (it's the same code for domain admins and superadmins) Note: don't try to read the diff of list-domain.php. Read the complete file instead ;-) git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1267 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
@ -6,6 +6,8 @@
|
||||
*/
|
||||
class DomainHandler extends PFAHandler {
|
||||
|
||||
protected $domain_field = 'domain';
|
||||
|
||||
protected function validate_new_id() {
|
||||
$valid = check_domain($this->id);
|
||||
|
||||
|
Reference in New Issue
Block a user