function toEventString()
{
return empty($this->name) ? $this->email : $this->name;
- }
-
- /// check config 'auth_comptype' to see if we restrict access ..
+ }
function verifyAuth()
{
$ff= HTML_FlexyFramework::get();
return true;
}
-
+
+
// ---------------- authentication / passwords and keys stuff ----------------
function isAuth()
{
{
//DB_DataObject::debugLevel(1);
// find out all the groups they are a member of.. + Default..
+
+ // ------ INIITIALIZE IF NO GROUPS ARE SET UP.
+
$g = DB_DataObject::Factory('Group_Rights');
if (!$g->count()) {
$g->genDefault();
}
+
if ($this->id < 0) {
return $g->adminRights(); // system is not set up - so they get full rights.
}
}
+ // ------ STANDARD PERMISSION HANDLING.
+
$g = DB_DataObject::Factory('Group_Members');
$grps = $g->listGroupMembership($this);
+ // print_r($grps);
$isAdmin = $g->inAdmin;
//echo '<PRE>'; print_r($grps);var_dump($isAdmin);
// the load all the perms for those groups, and add them all together..