diff --git a/~dev_rating/application/classes/Controller/Handler/Students.php b/~dev_rating/application/classes/Controller/Handler/Students.php index fe18f8b9b0c47abe1219beb0479ca370da28d3da..32a544e355428bc8fe5c52591667b399e39a68ec 100644 --- a/~dev_rating/application/classes/Controller/Handler/Students.php +++ b/~dev_rating/application/classes/Controller/Handler/Students.php @@ -5,11 +5,11 @@ class Controller_Handler_Students extends Controller_Handler public function before() { parent::before(); - $this->user->checkAccess(User::RIGHTS_ADMIN); + $this->user->checkAccess(User::RIGHTS_ADMIN | User::RIGHTS_DEAN); } public function action_create() { - $this->user->checkAccess(User::RIGHTS_ADMIN); +// $this->user->checkAccess(User::RIGHTS_ADMIN); $student = Model_Student::make() ->faculty($this->post['facultyID']) @@ -25,8 +25,6 @@ class Controller_Handler_Students extends Controller_Handler } public function action_search() { - $this->user->checkAccess(User::RIGHTS_ADMIN | User::RIGHTS_DEAN); - $facultyID = $this->post['FacultyID'] ? $this->post['FacultyID'] : $this->user->Faculty->ID; $gradeID = $this->post['GradeID']; $groupID = $this->post['GroupID'];