Skip to content
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.

Commit

Permalink
Create New Project button on group's view is not displayed when cur…
Browse files Browse the repository at this point in the history
…rent 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
  • Loading branch information
ChangsungKim committed Feb 11, 2015
1 parent 0e44da7 commit 516077a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/views/organization/view.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ <h3><span id="project-description">@org.descr</span></h3>
<button type="button" class="search-btn"><i class="yobicon-search"></i></button>
</div>
</div>
@if(OrganizationUser.isAdmin(org, UserApp.currentUser) || UserApp.currentUser().isSiteManager) {
<div class="span3">
<a href="@routes.ProjectApp.newProjectForm()?owner=@org.name" class="ybtn ybtn-primary">@Messages("button.newProject")</a>
</div>
}
</div>
<ul class="all-projects">
@for(project <- org.getVisibleProjects(UserApp.currentUser())) {
Expand Down

0 comments on commit 516077a

Please sign in to comment.