X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2FttUser.class.php;h=959649e3c8f19a4ae3fb3f00af40b230cc2de486;hb=a331cbeee550ed74a5333c6ac361418161d84bd7;hp=2f71ad362f2c4604bbf661c1b8ee1bed295851df;hpb=9a23a8c0a51b7ec38a96f525484134f3cb85dc7e;p=timetracker.git diff --git a/WEB-INF/lib/ttUser.class.php b/WEB-INF/lib/ttUser.class.php index 2f71ad36..959649e3 100644 --- a/WEB-INF/lib/ttUser.class.php +++ b/WEB-INF/lib/ttUser.class.php @@ -107,13 +107,13 @@ class ttUser { // Set user rights. if ($this->role == ROLE_USER) { $this->rights = right_data_entry|right_view_charts|right_view_reports; - } else if ($this->role == ROLE_CLIENT) { + } elseif ($this->role == ROLE_CLIENT) { $this->rights = right_view_reports|right_view_invoices; // TODO: how about right_view_charts, too? - } else if ($this->role == ROLE_COMANAGER) { + } elseif ($this->role == ROLE_COMANAGER) { $this->rights = right_data_entry|right_view_charts|right_view_reports|right_view_invoices|right_manage_team; - } else if ($this->role == ROLE_MANAGER) { + } elseif ($this->role == ROLE_MANAGER) { $this->rights = right_data_entry|right_view_charts|right_view_reports|right_view_invoices|right_manage_team|right_assign_roles|right_export_team; - } else if ($this->role == ROLE_SITE_ADMIN) { + } elseif ($this->role == ROLE_SITE_ADMIN) { $this->rights = right_administer_site; } } @@ -168,4 +168,3 @@ class ttUser { return $result; } } -?> \ No newline at end of file