airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [5/7] airavata-php-gateway git commit: AIRAVATA-2170 Don't allow changing project owner
Date Tue, 18 Oct 2016 03:52:24 GMT
AIRAVATA-2170 Don't allow changing project owner


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

Branch: refs/heads/develop
Commit: f6db137a3e4538f524c6103303024da160977991
Parents: 68932f2
Author: Marcus Christie <machrist@iu.edu>
Authored: Mon Oct 17 11:55:30 2016 -0400
Committer: Marcus Christie <machrist@iu.edu>
Committed: Mon Oct 17 11:55:30 2016 -0400

----------------------------------------------------------------------
 app/controllers/ProjectController.php | 2 +-
 app/views/project/edit.blade.php      | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/f6db137a/app/controllers/ProjectController.php
----------------------------------------------------------------------
diff --git a/app/controllers/ProjectController.php b/app/controllers/ProjectController.php
index 4c20886..9fe515e 100755
--- a/app/controllers/ProjectController.php
+++ b/app/controllers/ProjectController.php
@@ -126,7 +126,7 @@ class ProjectController extends BaseController
     public function editSubmit()
     {
         $projectDetails = array();
-        $projectDetails["owner"] = Session::get("username");
+        $projectDetails["owner"] = Input::get("projectOwner");
         $projectDetails["name"] = Input::get("project-name");
         $projectDetails["description"] = Input::get("project-description");
 

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/f6db137a/app/views/project/edit.blade.php
----------------------------------------------------------------------
diff --git a/app/views/project/edit.blade.php b/app/views/project/edit.blade.php
index 027bc3c..1e38dd7 100755
--- a/app/views/project/edit.blade.php
+++ b/app/views/project/edit.blade.php
@@ -36,6 +36,7 @@
                       name="project-description"
                       id="project-description" maxlength="200">{{ $project->description
}}</textarea>
             <input type="hidden" name="projectId" value="{{ Input::get('projId') }}"/>
+            <input type="hidden" name="projectOwner" value="{{ $project->owner}}"/>
         </div>
 
         <div class="form-group">


Mime
View raw message