karmen wrote:Hi,
What is the best way to do private forums? I've created category and then restrict this category to anonymous user. It leads to the situation when anonymous cannot see forums but still can search for messages in hiddent forums. I filed a bug in jira but I am not sure that this was the right solution.
karmen wrote:
I also tried to lock anonymous that made no effect (bug or not?). Actually, I need to host provate forums only with security restrictions: i.e. forums should be available to the specific groups only. No anonymous brousing. I can make some dummy forums for anonymous but the rest should be private. What is the best way to do it?
So, you are saying that you went to the Permissions of the anonymous users and restricted some forums to it, but the forums still keep showing. Is that?
karmen wrote:
So, you are saying that you went to the Permissions of the anonymous users and restricted some forums to it, but the forums still keep showing. Is that?
No, this works fine (though search finds hidden forums). My point in this message was that "Lock anonymous" does not work. It still sees the public forums.
karmen wrote:I learned what Captcha is and configured it (thanks to the forum!). Now registration works fine. Still, it is not possible to disable it but it is Ok for me.
Expression repository.getCategory(category.id) is undefined on line 41, column 40 in default/admin/category_list.htm. The problematic instruction: ---------- ==> list repository.getCategory(category.id).getForums() as forum [on line 41, column 33 in default/admin/category_list.htm] in include moduleAction [on line 1, column 1 in default/admin/empty.htm] ---------- Java backtrace for programmers: ---------- freemarker.core.InvalidReferenceException: Expression repository.getCategory(category.id) is undefined on line 41, column 40 in default/admin/category_list.htm. at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124) at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:134) at freemarker.core.Dot._getAsTemplateModel(Dot.java:78) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:86) at freemarker.core.Expression.getAsTemplateModel(Expression.java:89) at freemarker.core.IteratorBlock.accept(IteratorBlock.java:87) at freemarker.core.Environment.visit(Environment.java:171) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:171) at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160) at freemarker.core.Environment.visit(Environment.java:284) at freemarker.core.IteratorBlock.accept(IteratorBlock.java:95) at freemarker.core.Environment.visit(Environment.java:171) at freemarker.core.MixedContent.accept(MixedContent.java:92) at freemarker.core.Environment.visit(Environment.java:171) at freemarker.core.Environment.include(Environment.java:1256) at freemarker.core.Include.accept(Include.java:156) at freemarker.core.Environment.visit(Environment.java:171) at freemarker.core.Environment.process(Environment.java:156) at freemarker.template.Template.process(Template.java:219) at net.jforum.JForum.service(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at
karmen wrote:I have found it. The problem is in
jforum\WEB-INF\config\database\postgresql\postgresql.sql
CategoryModel.addNew is defined there with one bind parameter whille the code expects two. The second one is display order that is calculated in the code. I replaced the sequence in postgressql.sql to ? and it starts working.
I am not sure about your intentions so I hesitate to commit the change.
karmen wrote:
1. Lock anonyumous does not have any effect. The situation is the same: lock anonymous and then navigate to forums: anonymous can see all the forums, hidden or not
karmen wrote:
2a. If I remove General group from the list of user's groups than user cannot see any forum even if he belongs to the group that is supposed to see some restricted forums
You totally ruined the moon. You're gonna hafta pay for that you know. This tiny ad agrees:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
|