Author: uncleringo
Date: 2010-03-16 10:59:38 +0100 (Tue, 16 Mar 2010)
New Revision: 28547
Modified:
plugins/sfTrafficCMSPlugin/trunk/lib/sfTrafficGuardSecurityUser.class.php
Log:
Removed hasAccess function as it needs to be in the sfGuardUser class
Modified:
plugins/sfTrafficCMSPlugin/trunk/lib/sfTrafficGuardSecurityUser.class.php
===================================================================
--- plugins/sfTrafficCMSPlugin/trunk/lib/sfTrafficGuardSecurityUser.class.php
2010-03-16 08:40:04 UTC (rev 28546)
+++ plugins/sfTrafficCMSPlugin/trunk/lib/sfTrafficGuardSecurityUser.class.php
2010-03-16 09:59:38 UTC (rev 28547)
@@ -16,49 +16,4 @@
return false;
}
-
- public function hasAccess()
- {
- $allowed = false;
-
- /**
- * Check for specified allowed groups
- */
- if ($groups = sfConfig::get('app_sf_guard_plugin_allowed_groups', false))
- {
- foreach ($this->getGroups() as $group)
- {
- if (in_array($group->name, $groups))
- {
- $allowed = true;
- break;
- }
- }
- }
- /**
- * Check for specified denied groups
- */
- else if ($groups = sfConfig::get('app_sf_guard_plugin_denied_groups',
false))
- {
- $allowed = true;
-
- foreach ($this->getGroups() as $group)
- {
- if (in_array($group->name, $groups))
- {
- $allowed = false;
- break;
- }
- }
- }
- /**
- * Nothing specified means we're ok
- */
- else
- {
- $allowed = true;
- }
-
- return $allowed;
- }
}
\ No newline at end of file
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.