From 9f108dd1a969473375341d92a7b1252fa2cedc9a Mon Sep 17 00:00:00 2001 From: mszulecki Date: Thu, 14 Jun 2007 17:09:01 +0000 Subject: Initial import. git-svn-id: http://svn.sukimashita.com/repos/mailadmin/trunk@2 4281df72-ff29-0410-8fee-2d9ac0c5f5a7 --- lib/model/DomainPermissionPeer.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lib/model/DomainPermissionPeer.php (limited to 'lib/model/DomainPermissionPeer.php') diff --git a/lib/model/DomainPermissionPeer.php b/lib/model/DomainPermissionPeer.php new file mode 100644 index 0000000..c79e0e3 --- /dev/null +++ b/lib/model/DomainPermissionPeer.php @@ -0,0 +1,22 @@ +getUser()->hasCredential("superadmin")) + return; + + // set domain permissions + $criteria->addJoin(DomainPermissionPeer::DOMAIN_ID, $domain_id); + $criteria->add(DomainPermissionPeer::USER_ID, sfContext::getInstance()->getUser()->getId()); + } +} -- cgit v1.1-32-gdbae