Only show "New Dockerfile Build" when user has write permission
Fixes #156
This commit is contained in:
parent
d5e4b35a78
commit
744f462b96
1 changed files with 3 additions and 3 deletions
|
@ -89,12 +89,12 @@
|
||||||
<i class="fa ci-robot"></i> New Robot Account
|
<i class="fa ci-robot"></i> New Robot Account
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li role="presentation" class="divider" ng-if="currentPageContext.repository"></li>
|
<li role="presentation" class="divider" ng-if="currentPageContext.repository && currentPageContext.repository.can_write"></li>
|
||||||
<li role="presentation" class="dropdown-header"
|
<li role="presentation" class="dropdown-header"
|
||||||
ng-if="currentPageContext.repository">
|
ng-if="currentPageContext.repository && currentPageContext.repository.can_write">
|
||||||
Repository {{ currentPageContext.repository.namespace }}/{{ currentPageContext.repository.name }}
|
Repository {{ currentPageContext.repository.namespace }}/{{ currentPageContext.repository.name }}
|
||||||
</li>
|
</li>
|
||||||
<li ng-if="currentPageContext.repository">
|
<li ng-if="currentPageContext.repository && currentPageContext.repository.can_write">
|
||||||
<a href="javascript:void(0)" ng-click="startBuild()">
|
<a href="javascript:void(0)" ng-click="startBuild()">
|
||||||
<i class="fa fa-tasks"></i> New Dockerfile Build
|
<i class="fa fa-tasks"></i> New Dockerfile Build
|
||||||
</a>
|
</a>
|
||||||
|
|
Reference in a new issue