|
|
@@ -382,6 +382,10 @@ class User extends Model {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public function isTesterManager(): bool {
|
|
|
+ return $this->level >= User::LEVEL_TESTER_MANAGER;
|
|
|
+ }
|
|
|
+
|
|
|
public function isAdmin(): bool {
|
|
|
return $this->level >= User::LEVEL_ADMIN;
|
|
|
}
|
|
|
@@ -706,7 +710,7 @@ class User extends Model {
|
|
|
}
|
|
|
|
|
|
public function canAccessTests(): bool {
|
|
|
- return $this->isTester() || $this->isAdmin();
|
|
|
+ return $this->isTester() || $this->isTesterManager();
|
|
|
}
|
|
|
|
|
|
public function canAccessPractice(): bool {
|
|
|
@@ -734,7 +738,7 @@ class User extends Model {
|
|
|
}
|
|
|
|
|
|
public function canAccessAdminTestsList(): bool {
|
|
|
- return $this->level >= User::LEVEL_TESTER_MANAGER;
|
|
|
+ return $this->isTesterManager();
|
|
|
}
|
|
|
|
|
|
public function canExportProjectCsv(): bool {
|