Forums / Setup & design / disable admin site for anyone but admin user

disable admin site for anyone but admin user

Author Message

Huib Kleinhout

Friday 30 May 2003 1:37:32 pm

Does anyone know if it's possible to disallow certain users to use certain designs?
So for example a user that has logged in on (a non-virtual host) to /index.php/mydesign/ can't browse in /index.php/admin/
?

Thanx

Jan Borsodi

Friday 30 May 2003 2:03:13 pm

You control that by using roles and policies, simply make sure that roles for anonymous (or non-admin) users do not have user/login for the admin siteaccess. You should also make sure that the administrator has user/login to all (Any) siteaccesses.
Anon:
user/login mysiteaccess

Admin:
user/login *

If you see a user/login * policy for a non-admin role simple remove it and create a new one with the desired siteaccess.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Selmah Maxim

Saturday 31 May 2003 12:21:27 am

Can you explain this more ... plz ?

Paul Borgermans

Saturday 31 May 2003 12:38:07 am

In the admin interface you create this role with selecting the user module -> "allow limited" -> select login -> "allow limited" and then select the siteaccesses except the admin site

This role is then assigned to all users except admin

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Brendan Pike

Saturday 31 May 2003 12:46:14 am

I just did this on a site strangely when an Anonymous user visits the site, i.e. http://216.xx.xxx.xx:2022 they see the standard ezp design with a Access Deinied message.

But if they apply the design path like this, http://216.xx.xxx.xx:2022/design then it works fine.

If users have full access to all designs including admin then it works fine?
Can anyone provide any insight?

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Huib Kleinhout

Saturday 31 May 2003 12:57:26 am

Hmmm, I'm having the same problem as Brendan Pike.
"user/login mydesign" does not work (access denied) if no design is specified by the client, even though DefaultAccess and DefaultPage are set.
Any thoughts?
Thx

Selmah Maxim

Saturday 31 May 2003 1:07:04 am

i have tried befor, didn`t work, when user type site/admin he will access the admin sitemap !

the best i think to do is renaming the admin sitedeign and admin folder, let`s say to kings, then when user type site/admin will get nothing !

Also u must protect the admin folder with ..htaccess, for mose secure site !

Pual ,
whet the meaning login roles per site ?
if it`s for keep the users away from where the admin want, then is not working .. coz any way users need to login to access !

Selmah Maxim

Saturday 31 May 2003 1:12:24 am

just found bug ...

roles update ...

when u make update for roles, then logout , login u will find the old roles !
just found while am trying to update the users/login roles !

Brendan Pike

Saturday 31 May 2003 1:21:10 am

I'm not experiencing this bug, it seems to hold my settings correctly

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Selmah Maxim

Saturday 31 May 2003 1:21:49 am

now i had gave users: login/user, login/demo, work nice, but with problem !
it`s not taking the SiteDesign from ini file, i must write index.php/demo,/user !

any1 met this probem ?!

Huib Kleinhout

Sunday 01 June 2003 11:31:01 pm

Hi, I don't expirience that bug about 'roles update'. Maybe you forgot to hit the 'store' button?

But the problem with ez not taking the default design (and page?) from the ini file also stops me from restricting user/login access. This seems like a real bug to me.

Selmah Maxim

Monday 02 June 2003 2:18:00 am

Hi Huib ..

It was cach problem :)

Now amd waiting for some fixs, i hope soon will be on, the most important to is : 1st, the bug with phpcronjobs.php, 2sd, this access problem, and some modification for Ezimage (you cann`t make the uploaded image less than 1 MB, not verify is the uploaded file is image or not) .. i think thats all the major bugs !

eZ debug

Timing: Jan 18 2025 04:30:57
Script start
Timing: Jan 18 2025 04:30:57
Module start 'content'
Timing: Jan 18 2025 04:30:58
Module end 'content'
Timing: Jan 18 2025 04:30:58
Script end

Main resources:

Total runtime1.0522 sec
Peak memory usage4,096.0000 KB
Database Queries227

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 589.2734180.8125
Module start 'content' 0.00710.8490 770.0859758.7734
Module end 'content' 0.85610.1960 1,528.8594349.3047
Script end 1.0521  1,878.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00480.4535210.0002
Check MTime0.00170.1640210.0001
Mysql Total
Database connection0.00080.077010.0008
Mysqli_queries0.928588.24072270.0041
Looping result0.00380.35792250.0000
Template Total1.021497.120.5107
Template load0.00200.194820.0010
Template processing1.019496.878220.5097
Template load and register function0.00010.014010.0001
states
state_id_array0.00090.081110.0009
state_identifier_array0.00090.088720.0005
Override
Cache load0.00190.1766600.0000
Sytem overhead
Fetch class attribute can translate value0.00150.145260.0003
Fetch class attribute name0.00240.2287150.0002
XML
Image XML parsing0.00230.220860.0004
class_abstraction
Instantiating content class attribute0.00000.0036170.0000
General
dbfile0.00420.3950410.0001
String conversion0.00000.000730.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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
12content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
16content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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