Restricting admin siteaccess to some roles?

Author Message

Marc Gibert

Monday 28 February 2005 10:22:53 am

Hi!

Probably this has been aswered before, but I can't find it in the forums. My site is an intranet, and everyone has to login. The problem is that if they find out what url of the admin siteaccess is (quite easy), they can enter and browse the site within the administration interface.

Obviously, they can't make any changes, so permissions are working right but I would like to restrict the whole admin siteaccess to some roles. Is this possible?

Thanks in advance.

Łukasz Serwatka

Monday 28 February 2005 1:10:41 pm

Module: user
Function: login
Limitations: SiteAccess( your_users_view )

I hope this help

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Marc Gibert

Tuesday 01 March 2005 1:04:24 am

Sorry, I don't quite understant your answer.

Currently I have 3 roles:

- Normal user
- Intranet publisher
- Intranet admin

And 2 siteaccess:

- intranet
- administration

Everyone has to login to access either intranet or administration, but I'd like to restrict access to administration to only the publisher and admin roles.

Any help?

Łukasz Serwatka

Tuesday 01 March 2005 1:48:50 am

Hi Marc,

Try add this new policy for "Normal user"
Choose module "user" then click "Grant access to one function". Next choose function "login" and click "Grant limited access". Then choose intranet siteaccess. Sice now "Normal user" can`t login to "administration". I hope this help you.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:23:16
Script start
Timing: Jan 18 2025 19:23:16
Module start 'layout'
Timing: Jan 18 2025 19:23:16
Module start 'content'
Timing: Jan 18 2025 19:23:16
Module end 'content'
Timing: Jan 18 2025 19:23:16
Script end

Main resources:

Total runtime0.6850 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 589.4688152.6406
Module start 'layout' 0.00740.0034 742.109439.4766
Module start 'content' 0.01080.6729 781.5859552.1875
Module end 'content' 0.68360.0013 1,333.773412.1250
Script end 0.6850  1,345.8984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.5506160.0002
Check MTime0.00150.2129160.0001
Mysql Total
Database connection0.00100.142210.0010
Mysqli_queries0.632592.3367600.0105
Looping result0.00050.0783580.0000
Template Total0.639193.320.3195
Template load0.00210.313320.0011
Template processing0.636992.974320.3184
Template load and register function0.00020.030810.0002
states
state_id_array0.00220.316310.0022
state_identifier_array0.00420.610120.0021
Override
Cache load0.00180.2620290.0001
Sytem overhead
Fetch class attribute can translate value0.00060.082520.0003
Fetch class attribute name0.00100.141850.0002
XML
Image XML parsing0.00070.105620.0004
class_abstraction
Instantiating content class attribute0.00000.002060.0000
General
dbfile0.00080.1121180.0000
String conversion0.00000.001440.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs