
`Create New Project` button on group's view is not displayed when current user is not group admins or a site admin.
* Issue - `Create new project` button on group's view is shown always altough current user is not a group admin. * Solution - The button will not be displayed when current user is group admins and a site admin. Private-issue: 2110
@516077ad43918e379e1b3aa8277da5d599adde64
--- app/views/organization/view.scala.html
+++ app/views/organization/view.scala.html
... | ... | @@ -62,9 +62,11 @@ |
62 | 62 |
<button type="button" class="search-btn"><i class="yobicon-search"></i></button> |
63 | 63 |
</div> |
64 | 64 |
</div> |
65 |
+ @if(OrganizationUser.isAdmin(org, UserApp.currentUser) || UserApp.currentUser().isSiteManager) { |
|
65 | 66 |
<div class="span3"> |
66 | 67 |
<a href="@routes.ProjectApp.newProjectForm()?owner=@org.name" class="ybtn ybtn-primary">@Messages("button.newProject")</a> |
67 | 68 |
</div> |
69 |
+ } |
|
68 | 70 |
</div> |
69 | 71 |
<ul class="all-projects"> |
70 | 72 |
@for(project <- org.getVisibleProjects(UserApp.currentUser())) { |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?