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

Commit

Permalink
Fixed to move from group to group
Browse files Browse the repository at this point in the history
  • Loading branch information
Keesun Baik committed Sep 25, 2014
1 parent d3516a7 commit 54fa948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/ProjectApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ public static Result transferProject(String ownerId, String projectName) {

User projectOwner = User.findByLoginId(project.owner);
Organization projectOrg = Organization.findByName(project.owner);
if((destOwner != null && destOwner.equals(projectOwner)) || (projectOrg != null && projectOrg.equals(destOrg))) {
if((!destOwner.isAnonymous() && destOwner.equals(projectOwner)) || (projectOrg != null && projectOrg.equals(destOrg))) {
flash(Constants.INFO, "project.transfer.has.same.owner");
Form<Project> projectForm = form(Project.class).fill(project);
return ok(transfer.render("title.projectTransfer", projectForm, project));
Expand Down

0 comments on commit 54fa948

Please sign in to comment.