Skip to content

Commit

Permalink
редактирование топиков модераторами
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcom committed Nov 15, 2012
1 parent 7874e4e commit 9915508
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/ru/org/linux/group/GroupPermissionService.java
Expand Up @@ -183,18 +183,18 @@ public boolean isEditable(@Nonnull PreparedTopic topic, @Nullable User by) {
return false;
}

if (by.isModerator()) {
if (author.isModerator()) {
return true;
}

return section.isPremoderated();
if (by.isAdministrator()) {
return true;
}

if (!topic.isLorcode()) {
return false;
}

if (by.isModerator()) {
return true;
}

if (by.canCorrect() && section.isPremoderated()) {
return true;
}
Expand Down

0 comments on commit 9915508

Please sign in to comment.