Username
Forgot password?
Welcome to our site!
Or Join with FTTF

ACL file for disabling anonymous users to see content

0

759 views
Using config/acl.ini I have these properties for "everyone"

view_question = D
view_answers = D
view_comments = D
login = A
read = D

Based on the acl configuration, I want to disable anonymous users, but it does not seem to work.

Anything necessary for the settings to affect? Or are they wrong?
 
asked September 6, 2013 at 1:04 PM

 tr

1 Answer

1
Best answer
 
The viewing of questions and answers is not currently protected by ACL.

What will not logged in user see on the home page? Is user suppose to see list of questions but then clicking on a questions will show some sort of permission error?

If that's what you want you can add this line to the Lampcms/controllers/Viewquestion.php
right about the "protected function main()" line


protected $membersOnly = true;


If you really want to use permissions from the ACL file to control viewing of question then add


protected $permission = 'view_question';
flag
Edited Sep 7, 2013 06:56 AM
explained about permission
answered September 7, 2013 at 6:53 AM

Your answer

Join with account you already have

FTTF

Preview

Alert