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