Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Same Perms Schema, different behaviour
  • Posted: 06.07.2007, 21:44
     
    pru
    rank:
    Softmore Softmore
    registered:
     December 2004
    Status:
    offline
    last visit:
    08.08.07
    Posts:
    99
    Hi all
    PN 0.764, Pagesetter 6.3.0, Linux host
    ======================================
    Having created a PN website that worked perfectly, with a very simple Groups setup (admins, editors, users) - i re-used exactly the same users and groups and the same perms schema for another site, but! with the new site, the Admin menu-block that should appear to members of the Editors group, doesn't show up when a member of Editors logs in. When I, the Admin, log in, I see the entire Admin menu - no problem.

    Am I missing some other variable that has to be set somewhere? At present only the numbers assigned to individual users in group User are different between the two sites. And they're on two different ISPs, so maybe a PHP/Apache difference?

    icon_confused
    Am more than puzzled by this!
    Pru
  • Posted: 06.07.2007, 21:59
     
    AmmoDump
    rank:
    Professional Professional
    registered:
     December 2003
    Status:
    offline
    last visit:
    21.11.08
    Posts:
    2975
    Admin Block? Please Define better.

    I would double check everything.. look for misspeelings icon_wink , also check to make sure your blocks are named the same.

    --
    David Pahl
    Zikula Support Team
  • Posted: 06.07.2007, 22:21
     
    nestormateo
    rank:
    Professional Professional
    registered:
     September 2006
    Status:
    offline
    last visit:
    22.11.08
    Posts:
    1451
    I think that pru reffer to the Main-menu block, and the Admin options that shoud appear.

    Do you mean the Admin link in the Mainmenu?
    Or the "Your account", "Submit news" and "Logout" links?

    I say you the same as David:
    Look for the correct block name and possible misspeelings first icon_wink

    --
    - Mateo T. -
    Mis principios... son mis fines
  • Posted: 07.07.2007, 18:53
     
    pru
    rank:
    Softmore Softmore
    registered:
     December 2004
    Status:
    offline
    last visit:
    08.08.07
    Posts:
    99
    Guys, thank you both for your speedy and helpful replies - it's always so heartening when this happens! And it prompted me to re-check everything and look further. After hours, I remembered that with this particular ISP I always have DB problems when migrating my mySql DB from local to the ISP's server. The result is that many tables, e.g. Group Perms, end up having no auto-increment set for their primary key.

    (Groups and Users should also have auto-increment set, BTW.)

    When I have problems like this, I typically hack around in the DB (after reading the PN forums of course! which is how I discovered that this can happen in the first place - although I don't know WHY)so I may have made some changes, but not all the necessary ones.

    What I did was delete the bothersome Editors group and all its group perms, and recreate them after checking that my DB had auto-increment where it should have, and modifying it where necessary. This worked. After that, the editors' access to the menu worked perfectly.

    FYI, I don't have a main menu at all, but a generic menu called Admin which has 3 items in it: Admin, Editors and Logout. Admin can see and use all 3 items, but Editors can only see and use Editors and Logout.

    My esoteric problems with ISPs are making me come to the conclusion that I need to become my own provider, and fast. This is just too painful!

    Many thanks again
    Pru
  • Posted: 08.07.2007, 05:36
     
    nestormateo
    rank:
    Professional Professional
    registered:
     September 2006
    Status:
    offline
    last visit:
    22.11.08
    Posts:
    1451
    So, do you mean the links in the Menu, right!

    For what you want, you have to see very well the permission rules, i think it may be as:

    Admins | .* | .* | ACCESS_ADMIN
    AllGroups | Menublock:: | YourBlockTitleHere:AdminLinkName: | ACCESS_NONE
    Editors | .* | .* | ACCESS_COMMENT
    Users | .* | .* | ACCESS_COMMENT
    UnRegistered | Menublock:: YourBlockTitleHere:(YourAccount_LinkName |SubmitNews_LinkName |Logout_LinkName): ACCESS_NONE

    See that you have to put exactly the names of the block and the links to apply the rule. If the Rule has a different name it's no apply!
    be care with this. Good luck

    --
    - Mateo T. -
    Mis principios... son mis fines

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula