From e363594ea2d1b1f2c6442346f9e98155f14d3127 Mon Sep 17 00:00:00 2001
From: xamgore <xamgore@ya.ru>
Date: Fri, 4 Sep 2015 17:37:49 +0300
Subject: [PATCH] Faculty select is hidden at subjects/ page

---
 ~dev_rating/application/classes/Controller/Office/Subjects.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/~dev_rating/application/classes/Controller/Office/Subjects.php b/~dev_rating/application/classes/Controller/Office/Subjects.php
index 4d31dbf07..fb0d98427 100644
--- a/~dev_rating/application/classes/Controller/Office/Subjects.php
+++ b/~dev_rating/application/classes/Controller/Office/Subjects.php
@@ -17,7 +17,7 @@ class Controller_Office_Subjects extends Controller_Environment_Office
 
         $this->twig->set([
             'UploadingResult' => $result,
-            'Faculties'       => Model_Faculties::load(),
+            'Faculties'       => $this->user->isAdmin() ? Model_Faculties::load() : [],
         ])->set_filename(static::OFFICE . 'subjects/upload');
     }
 }
-- 
GitLab