Results 1 to 7 of 7

Thread: Restrict access to single catalog items based on user rights

  1. #1
    New user
    Join Date
    01-14-10.
    Posts
    16

    Default Restrict access to single catalog items based on user rights

    Hi,

    I want to restrict access for single catalog items (f.ex. checkbox to "publish" an article, which triggers the display of an article in the frontend) to certain backend-user/backend-user-groups. They should only be available/visible to admins or reporters or whatever.

    Does anybody have an idea how to do this?
    Is there a hook available to extend user rights or can this be done by a module?
    Every hint is highly appreciated.

    Thanks a lot,
    Sares

  2. #2
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: Restrict access to single catalog items based on user rights

    There is no user rights at the moment. The Alpha version will include FE groups for editability of the items.

    You can however use the pages method to create a category tree and then restrict access to those pages, if they are not logged in.

  3. #3
    New user
    Join Date
    01-14-10.
    Posts
    16

    Default Re: Restrict access to single catalog items based on user rights

    Hi Thyon,

    thank you very much for your answer.

    FE restrictions and pages doesn't help in my case, because the reporters are logged in and have access to the backend resp. catalog and here the restrictions should take place. In general they should be able to edit catalog items, but in detail some of the catalog items should be "invisible" to them, depending on their user-rights/user-group.

    It is comparable with a simple workflow management, where editors can create new content, but they can't publish it.
    What do you think, would this be an interesting feature for 2.0? If so, maybe I should write a feature request...

    Kind regards,
    Sares

  4. #4
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: Restrict access to single catalog items based on user rights

    We already have something like that for the BE in the feature requests, but it won't make it into 2.0, maybe 2.1

  5. #5
    New user
    Join Date
    01-14-10.
    Posts
    16

    Default Re: Restrict access to single catalog items based on user rights

    Ok, thank you very much!

    Kind regards,
    Sares

  6. #6
    New user
    Join Date
    07-16-09.
    Location
    Lausanne, Switzerland
    Posts
    8

    Default Re: Restrict access to single catalog items based on user ri

    I've just posted a feature request at code.google.com for that because I really need this feature as soon as possible. Thanks!

  7. #7
    User MacKP's Avatar
    Join Date
    06-19-09.
    Location
    Duisburg (Germany)
    Posts
    211

    Default Re: Restrict access to single catalog items based on user ri

    You can try to make something like that with dca.
    It's now possible to make it like this ->
    $GLOBALS['TL_DCA']['tabellenname']['fields']['spaltenname']['eval']['readonly'] = true;
    the field spaltenname is now only readable... that is also working with grouprights (if group=1 than ...).

    So try it out.. I hope this will do it for you ;-)

    regards
    Mediendepot Ruhr
    For real-time chat the (inofficial) Chatroom in IRC:
    -> irc.freenode.net #contao | irc.freenode.net #contao.de

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •