0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00
postfixadmin/model
Christian Boltz 68c79b9013 PFAHandler.php:
allow restriction to an admin's domain permissions

- new protected variables:
  $admin_username  - if set, restrict $allowed_domains to this admin
  $domain_field    - column containing the domain
  $allowed_domains - if $domain_field is set, this is an array with
                     the domain list
- __construct: new optional parameter $admin_username to restrict
  allowed domains to this admin's permissions
- read_from_db(): handle $allowed_domains
- read_from_db(): fix query if $condition == ""

PS: Yes, I know some people would like to kill me for including 
    permission stuff in PFAHandler, but it's the best (and shortest,
    only +20 lines) way to handle it.



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1266 a1433add-5e2c-0410-b055-b7f2511e0802
2011-11-12 21:46:25 +00:00
..
AliasdomainHandler.php model/AliasdomainHandler.php: 2011-11-01 00:00:13 +00:00
AliasHandler.php PFAHandler, AliasHandler: 2011-10-16 20:31:46 +00:00
Config.php make Config.php a php5 compatible object; remove strict standards warnings 2011-10-24 22:24:21 +00:00
DomainHandler.php scripts/shells/domain.php: 2011-10-31 20:57:43 +00:00
Lang.php Move the classes "Config" and "Lang" to scripts/common.php to model/ 2011-10-17 21:47:58 +00:00
MailboxHandler.php MailboxHandler.php: 2011-10-29 22:29:16 +00:00
PFAHandler.php PFAHandler.php: 2011-11-12 21:46:25 +00:00
VacationHandler.php VacationHandler: 2011-07-14 20:29:10 +00:00