Skip to content

Commit

Permalink
KYLIN-4377: allow project administrator to operate hybrid model
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoukangcn authored and nichunen committed Feb 15, 2020
1 parent fa3862a commit 908ea30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/app/partials/models/models_tree.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ <h3 class="text-info">Hybrids ({{hybridInstanceManager.hybridInstances.length}})
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown">
Action <span class="ace-icon fa fa-caret-down icon-on-right"></span>
</button>
<ul class="dropdown-menu" role="menu" style="right:0;left:auto;" ng-if="(userService.hasRole('ROLE_ADMIN') || hasPermission('model',model, permissions.ADMINISTRATION.mask, permissions.MANAGEMENT.mask))">
<ul class="dropdown-menu" role="menu" style="right:0;left:auto;" ng-if="(userService.hasRole('ROLE_ADMIN') || hasPermission('model', hybridInstance, permissions.ADMINISTRATION.mask, permissions.MANAGEMENT.mask))">
<li><a ng-click="editHybridInstance(hybridInstance)" title="Edit Hybrid" style="cursor:pointer;margin-right: 8px;" >Edit</a></li>
<li><a ng-click="dropHybridInstance(hybridInstance)" title="Drop Hybrid" style="cursor:pointer;margin-right: 8px;">Drop</a></li>
</ul>
Expand Down

0 comments on commit 908ea30

Please sign in to comment.