Fix für Threads Panel

git-svn-id: https://svn.libreccm.org/ccm/trunk@1140 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2011-10-03 11:32:28 +00:00
parent 9a3985fa97
commit 2b2d99e414
1 changed files with 7 additions and 3 deletions

View File

@ -262,11 +262,15 @@ public class ForumUserCompactView extends ModalContainer implements Constants {
// currently thread panel is always shown. If read access should be
// bound to logged in users, additional logic is required here.
// jensp 2011-10-02: Additional logic added
if (!forum.isPublic()
&& PermissionService.checkPermission(readPermission)) {
if (forum.isPublic()) {
generateModeXML(state, content, MODE_THREADS,
Text.gz("forum.ui.modeThreads"));
}
} else {
if (PermissionService.checkPermission(readPermission)) {
generateModeXML(state, content, MODE_THREADS,
Text.gz("forum.ui.modeThreads"));
}
}
// topics panel is always shoen as well if not restricted to admins.
if (!Forum.getConfig().topicCreationByAdminOnly()) {
generateModeXML(state, content, MODE_TOPICS,