Forums / General / Why I can't to grant permissions to Anonymous user?

Why I can't to grant permissions to Anonymous user?

Author Message

Natalia Lillo

Thursday 20 October 2005 9:58:42 am

I Edit content/read, adds the permissions to the modules and show me the principal page wiht deny access. Why??, Where i must do it? ..

Thanks...

Natalia

Marko Žmak

Thursday 20 October 2005 11:10:29 am

Could you explain more in details what are you trying to do. It's not clear from your description of the problem.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Natalia Lillo

Thursday 20 October 2005 11:37:31 am

Hi Marko,
I have set this RequireUserLogin = false for the Anonymous role and I want to give permissions to the Anonymous user but just at a few module or nodes, for this I edit coment/read and I add limitations, is that right???.., because, when I do the changes in the principal page appear deny access.
I'm sorry for my english...
I hope you get understand me..

Cheers..

Natalia

Marko Žmak

Thursday 20 October 2005 3:13:00 pm

First you have to grant to Anonymous "user/login" permission for your user siteacces (this would be for example "news" if your admin siteacces is "news_admin"). Without that, Anonymous can't access your site.

Then you have to grant to Anonymous permissions fro content/read to all the classes and all the sections you want him to be able to read. Aditionaly you can grant him "content/read" only for some nodes or subtrees of nodes.

Try with this tips, and if it doesn't succed copy and paste permissions in a post here, so that it's more clear what exactly you did.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Natalia Lillo

Friday 21 October 2005 6:07:25 am

Hi Marko, How do you do?, thanks for your help...
Look at this..

This is the error:

Error/ Kernel
Access denied
You don't have permission to access this area.

Now...
These are the permissions:

content read Node( SOAP - ¿De qué se trata? ,
Boletin Nº 1 - MAPFRE , ¿Quiénes
somos?)
content pdf Section( Standard )
shop buy No limitations
rss feed No limitations
user login SiteAccess( intranet )

I set the parameter RequireUserLogin = false , because I don't want Anonymous's user to login for use the site. Now Anonymous's user have permissions to all the modules hereby I want to grant permissions just above..
All works so well, but when I try at to limit the permissions show me the error above.

In definitive whatever I want is just the Anonymous user not to login for the use the site, he enter to the principal page without login page, and to grant some permissions.

Thanks..

Cheers...

Natalia

Marko Žmak

Friday 21 October 2005 11:10:26 am

First of all, RequireUserLogin doesn't matter for the anonymous user if you give him "user login" acces. the fact that Anonymous virtually "logs in" in your site shouldn't disturb you since the Anonymous can do only what you allow him to do. So better set RequireUserLogin = false, maybe it could even be the reason why your site is not working.

As for your problem, could you also copy paste the exact URL that reproduced the error?

Suggestion: when you ask for help on forum, try to be more detailed. Because more information you give, the better is the chance that someone can figure what's your problem.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Rubén Valenzuela

Monday 24 October 2005 9:01:15 am

Hi,

I'm working on the same project as Natalia and would greatly appreciate you confirm whether the steps taken are correct or not.

Having selected the user site - like news in your example - working on the admin account:
1.- we gave "user login" for anonymous account.
2.- set read privileges on every module that we want to give anonymous access.
3.- set RequireUserLogin to false, in your note this wouldn't be necessary. We'll try setting it to true and see what happends.

What we've experienced is that only if we remove the contents that appear on the front page from the nodes and subtrees list for anonymous they will appeear with our the 'login required' error.

Marko Žmak

Tuesday 25 October 2005 1:20:06 pm

Just for case, did you try clearing the cache after making changes to permissions? Also, enalbe DebugOutput and see what you get on the bottom of the page as debug.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Natalia Lillo

Tuesday 25 October 2005 2:14:03 pm

Hi Marko,
Yes, I clean the cache provided I change something.
But the other that you say about "DebugOutput", I don't Know as work...

I try with sections and almost works...,If I create a section and I add nodes or permissions at that and without to assign that section to the content/read, just I create it, nothing more, almost works with the exception what in the top menu with the user administrator shows the same nodes that those to the Anonymous.

Well, I will follow trying,...

Thank you so much for your help.....

Cheers.

Natalia

Julio Cesar Rodriguez Cruz

Wednesday 25 January 2006 1:43:53 am

http://ez.no/content/edit/111661/1

I have the same error but I can't solve it, any can help me?

I have changed the Anonymous Policies, they are:

Module Function Limitation
content read Node( eZ publish ) , Subtree( eZ publish )
content pdf Section( Standard )
rss feed No limitations
content read No limitations
section all functions No limitations
user login SiteAccess( my_public_site )

I had cleared all caches

the log file var/log/error.log show this error:
[ Jan 25 2006 08:306 ] [10.8.2.237] Error ocurred using URI: /ezsite/index.php

When I Login as administrator I can see all pages, but I need that an anonymous user don't need to login in order to see any pages of my public site.

I use eZ Publish 3.7.3

thanks

eZ debug

Timing: Jan 18 2025 19:09:15
Script start
Timing: Jan 18 2025 19:09:15
Module start 'content'
Timing: Jan 18 2025 19:09:16
Module end 'content'
Timing: Jan 18 2025 19:09:17
Script end

Main resources:

Total runtime1.5184 sec
Peak memory usage4,096.0000 KB
Database Queries219

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0088 587.8359180.8203
Module start 'content' 0.00881.3263 768.6563704.6641
Module end 'content' 1.33510.1832 1,473.3203344.4375
Script end 1.5183  1,817.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.2542210.0002
Check MTime0.00150.0992210.0001
Mysql Total
Database connection0.00070.047310.0007
Mysqli_queries1.409892.85102190.0064
Looping result0.00350.22932170.0000
Template Total1.476897.320.7384
Template load0.00220.145820.0011
Template processing1.474697.114520.7373
Template load and register function0.00020.015510.0002
states
state_id_array0.00090.056410.0009
state_identifier_array0.00290.190920.0014
Override
Cache load0.00200.1338850.0000
Sytem overhead
Fetch class attribute can translate value0.00200.134250.0004
Fetch class attribute name0.00210.1350110.0002
XML
Image XML parsing0.00140.088950.0003
class_abstraction
Instantiating content class attribute0.00000.0021140.0000
General
dbfile0.00400.2623290.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
17content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
10content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 43
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs