You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eagle.apache.org by ji...@apache.org on 2015/12/15 11:02:01 UTC
incubator-eagle git commit: EAGLE-76 Disable creating newStream for
common user role Disable creating newStream for common user role
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 <ji...@ebay.com>
Authored: Tue Dec 15 17:51:01 2015 +0800
Committer: jiljiang <ji...@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>