Skip to content
Snippets Groups Projects
Commit d9bd6f84 authored by RomanSteinberg's avatar RomanSteinberg
Browse files

FIX: access to students list

parent 4949cda2
Branches
Tags
No related merge requests found
......@@ -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'];
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment