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

Commit

Permalink
Assign to me and Created by me are not shown when current user is…
Browse files Browse the repository at this point in the history
… anonymous.

Cause:
Although current user is anonymous, `Assign to me` and `Create by me` are shown on `Issue` menu. But it is nonsense. Anonymous can not write any issues and not be a assignee.

Solutions:
When current user is anonymous, `Assign to me` and `Create by me` will not be shown.
For these modifications, actually, `!UserApp.currentUser().isSiteManager` is replaced to `!UserApp.currentUser().isAnonymous`. The previous codes are bug and new codes are to solve this issue.

Private-issue: 1676
  • Loading branch information
ChangsungKim committed Aug 19, 2014
1 parent 135eff2 commit 2221ef6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/issue/partial_list_quicksearch.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<span class="num-badge pull-right">@Issue.countIssuesBy(project.id, paramForEveryone)</span>
</a>
</li>
@if(!UserApp.currentUser().isSiteManager){
@if(!UserApp.currentUser().isAnonymous){
<li @if(param.assigneeId == UserApp.currentUser().id){ class="active"}>
<a pjax-filter href="#"
data-assignee-id="@User.findByLoginId(session.get("loginId")).id"
Expand Down

0 comments on commit 2221ef6

Please sign in to comment.