airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject airavata-php-gateway git commit: AIRAVATA-1841 Only check if airavata up if user is authorized
Date Tue, 10 Jan 2017 21:30:10 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop 4ece55fa2 -> 47fef07ee


AIRAVATA-1841 Only check if airavata up if user is authorized


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/47fef07e
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/47fef07e
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/47fef07e

Branch: refs/heads/develop
Commit: 47fef07ee73cd6e539b70280fbf79a7846965a6a
Parents: 4ece55f
Author: Marcus Christie <machristie@apache.org>
Authored: Tue Jan 10 16:29:37 2017 -0500
Committer: Marcus Christie <machristie@apache.org>
Committed: Tue Jan 10 16:29:37 2017 -0500

----------------------------------------------------------------------
 app/filters.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/47fef07e/app/filters.php
----------------------------------------------------------------------
diff --git a/app/filters.php b/app/filters.php
index 1c63b6a..4dc9f38 100755
--- a/app/filters.php
+++ b/app/filters.php
@@ -47,7 +47,7 @@ App::before(function ($request) {
     if ($request->path() == "logout") {
         return;
     }
-    if (CommonUtilities::id_in_session()) {
+    if ( Session::has('authorized-user') || Session::has('admin') || Session::has('admin-read-only')
) {
         // Use "airavata-down" flash variable as a way to prevent infinite redirect
         if (!CommonUtilities::isAiravataUp() && !Session::has("airavata-down")) {
             return Redirect::to("home")->with("airavata-down", true);


Mime
View raw message