Пример #1
0
 /**
  * The user has write privileges on all properties if he is the administrator of this principal
  * @param array $properties
  * @return array an array of (property => isWritable) pairs.
  */
 public function property_priv_write($properties)
 {
     $retval = parent::property_priv_read($properties);
     $is_admin = $this->is_admin();
     $retval[BeeHub::PROP_EMAIL] = $is_admin;
     $retval[BeeHub::PROP_SURFCONEXT] = $is_admin;
     $retval[BeeHub::PROP_SURFCONEXT_DESCRIPTION] = $is_admin;
     $retval[BeeHub::PROP_X509] = $is_admin;
     $retval[BeeHub::PROP_SPONSOR] = $is_admin;
     $retval[DAV::PROP_GROUP_MEMBERSHIP] = false;
     $retval[BeeHub::PROP_SPONSOR_MEMBERSHIP] = false;
     $retval[BeeHub::PROP_LAST_ACTIVITY] = false;
     return $retval;
 }
Пример #2
0
 /**
  * @param array $properties
  * @return array an array of (property => isReadable) pairs.
  */
 public function property_priv_read($properties)
 {
     $retval = parent::property_priv_read($properties);
     if (@$retval[DAV::PROP_GROUP_MEMBER_SET]) {
         $retval[DAV::PROP_GROUP_MEMBER_SET] = $this->is_admin();
     }
     return $retval;
 }