|
@@ -77,7 +77,7 @@ Route::filter('guest', function () {
|
77
|
77
|
break;
|
78
|
78
|
|
79
|
79
|
case 2:
|
80
|
|
- return Redirect::to('school-coordinator');
|
|
80
|
+ return Redirect::to('school/' . Auth::user()->school->id);
|
81
|
81
|
break;
|
82
|
82
|
|
83
|
83
|
case 3:
|
|
@@ -105,7 +105,7 @@ Route::filter('admin', function () {
|
105
|
105
|
if (Auth::user()->role != 1) {
|
106
|
106
|
switch (Auth::user()->role) {
|
107
|
107
|
case 2:
|
108
|
|
- return Redirect::to('school-coordinator');
|
|
108
|
+ return Redirect::to('school/' . Auth::user()->school->id);
|
109
|
109
|
break;
|
110
|
110
|
|
111
|
111
|
case 3:
|
|
@@ -181,7 +181,7 @@ Route::filter('prof', function () {
|
181
|
181
|
break;
|
182
|
182
|
|
183
|
183
|
case 2:
|
184
|
|
- return Redirect::to('school-coordinator');
|
|
184
|
+ return Redirect::to('school/' . Auth::user()->school->id);
|
185
|
185
|
break;
|
186
|
186
|
|
187
|
187
|
case 3:
|
|
@@ -207,4 +207,4 @@ Route::filter('csrf', function () {
|
207
|
207
|
if (Session::token() !== $token) {
|
208
|
208
|
throw new Illuminate\Session\TokenMismatchException;
|
209
|
209
|
}
|
210
|
|
-});
|
|
210
|
+});
|