Replacing else if with elseif
[timetracker.git] / WEB-INF / lib / ttUser.class.php
index ad179ea..959649e 100644 (file)
@@ -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;
       }
     }