Esempio n. 1
0
 public function getRole()
 {
     if ($this->getActiveOrganisation()) {
         return ModelUserOrganisation::getByOrganisationId($this->getActiveOrganisation(), $this->id)->role;
     }
     return '';
 }
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct();
     $this->prependSiteTitle(lang('Account'));
     $this->users = ModelUserOrganisation::getUsers($this->activeOrganisation->id);
     if ($this->isPostBack()) {
         $this->inviteUser();
         $this->changePassword();
     }
 }