You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sm...@apache.org on 2016/03/21 17:09:27 UTC

[3/4] airavata-php-gateway git commit: Bringing back admin-alert

Bringing back admin-alert


Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/967f8c28
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/967f8c28
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/967f8c28

Branch: refs/heads/master
Commit: 967f8c287bfe2f3eb4355b3b2ca97a19c62c97de
Parents: bbcbff2
Author: Nipurn Doshi <ni...@gmail.com>
Authored: Sun Mar 20 19:42:27 2016 -0400
Committer: Nipurn Doshi <ni...@gmail.com>
Committed: Sun Mar 20 19:42:27 2016 -0400

----------------------------------------------------------------------
 app/filters.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/967f8c28/app/filters.php
----------------------------------------------------------------------
diff --git a/app/filters.php b/app/filters.php
index fd6db98..638be33 100755
--- a/app/filters.php
+++ b/app/filters.php
@@ -121,7 +121,7 @@ Route::filter('verifyauthorizeduser', function () {
 Route::filter('verifyadmin', function () {
     if (CommonUtilities::verify_login()) {
         if (!Session::has("admin") && !Session::has("admin-read-only")) {
-            return Redirect::to("home");
+            return Redirect::to("home")->with("admin-alert", true);
         }
     } else
         return Redirect::to("home")->with("login-alert", true);
@@ -130,7 +130,7 @@ Route::filter('verifyadmin', function () {
 Route::filter('verifyeditadmin', function () {
     if (CommonUtilities::verify_login()) {
         if (!Session::has("admin")) {
-            return Redirect::to("home");
+            return Redirect::to("home")->with("admin-alert", true);
         }
     } else
         return Redirect::to("home")->with("login-alert", true);