eagle-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ji...@apache.org
Subject incubator-eagle git commit: EAGLE-76 Disable creating newStream for common user role Disable creating newStream for common user role
Date Tue, 15 Dec 2015 10:02:01 GMT
Repository: incubator-eagle
Updated Branches:
  refs/heads/master 56a0523e2 -> 2734b4222


EAGLE-76 Disable creating newStream for common user role
Disable creating newStream for common user role

https://issues.apache.org/jira/browse/EAGLE-76

Author: @zombieJ
Reviewer: @haoch

Closes #31


Project: http://git-wip-us.apache.org/repos/asf/incubator-eagle/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-eagle/commit/2734b422
Tree: http://git-wip-us.apache.org/repos/asf/incubator-eagle/tree/2734b422
Diff: http://git-wip-us.apache.org/repos/asf/incubator-eagle/diff/2734b422

Branch: refs/heads/master
Commit: 2734b42221346ca4eb7bf27894e89bac89f45ab8
Parents: 56a0523
Author: jiljiang <jiljiang@ebay.com>
Authored: Tue Dec 15 17:51:01 2015 +0800
Committer: jiljiang <jiljiang@ebay.com>
Committed: Tue Dec 15 17:51:01 2015 +0800

----------------------------------------------------------------------
 eagle-webservice/src/main/webapp/app/partials/dam/streamList.html | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/2734b422/eagle-webservice/src/main/webapp/app/partials/dam/streamList.html
----------------------------------------------------------------------
diff --git a/eagle-webservice/src/main/webapp/app/partials/dam/streamList.html b/eagle-webservice/src/main/webapp/app/partials/dam/streamList.html
index 3b87207..251bc46 100644
--- a/eagle-webservice/src/main/webapp/app/partials/dam/streamList.html
+++ b/eagle-webservice/src/main/webapp/app/partials/dam/streamList.html
@@ -17,6 +17,7 @@
   -->
 <div class="page-fixed">
 	<button class="btn btn-primary"
+		ng-if="auth.isRole('ROLE_ADMIN')"
 		ng-click="showStreamEditor()"
 	>+ New Stream</button>
 </div>
@@ -33,7 +34,7 @@
 			<button class="btn btn-box-tool" data-widget="collapse">
 				<i class="fa fa-minus"></i>
 			</button>
-			<button class="btn btn-box-tool" ng-click="showStreamEditor(stream)">
+			<button class="btn btn-box-tool" ng-click="showStreamEditor(stream)" ng-if="auth.isRole('ROLE_ADMIN')">
 				<i class="fa fa-wrench"></i>
 			</button>
 		</div>


Mime
View raw message