Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I have website with a lot of books.
I want to create a new book to a username ( I will change the author name).
I want to give a permission to specific role ( this username role ) to add a book page content but just to the specific book that I created to him . ( not to all the books )
My goal is to give permission for user to manage just his book.
How can I do that?
Thanks.
Comment | File | Size | Author |
---|---|---|---|
#6 | capture.jpg | 50.48 KB | wxman |
Comments
Comment #1
ntigh52 CreditAttribution: ntigh52 commentedComment #2
ntigh52 CreditAttribution: ntigh52 commentedComment #2.0
ntigh52 CreditAttribution: ntigh52 commented1
Comment #3
ntigh52 CreditAttribution: ntigh52 commentedSorry but I didnt solve this issue.
I need give permission Add content and child pages to books but not to all the book, just own books.
on the Book outline just own parent pages will be.
How can it done?
thanks a lot
Comment #4
wxman CreditAttribution: wxman commentedI think I've tried all the different access modules, but none can solve this problem. I'm going to have to shut off the book creation on my site until this gets solved.
Comment #5
wxman CreditAttribution: wxman commentedI did find a messy workaround by adding this to my node.tpl.php
This makes it so the add chapter/child page link only shows if the viewer is the owner of the node. I still have to figure out how to remove the 'add child page' link from my links.
Comment #6
wxman CreditAttribution: wxman commentedI improved this just a little bit, but it's still messy. I added a DIV around the link.
I then got rid of the original add child page link using CSS:
I added my own CSS to really make it stand out:
I attached a picture of the finished product.
Comment #7
ntigh52 CreditAttribution: ntigh52 commented@wxman,
thanks,
i think that the good way for thaT is, to check the uid of the bppk parent node and to compare it to the user id ?
what do you think?
I wish there was support to the module.
Thanks a lot.
Comment #7.0
ntigh52 CreditAttribution: ntigh52 commented4
Comment #8
suriyan saychompoo CreditAttribution: suriyan saychompoo commentedbook_Permission to add sub pages Module Should be able to help you
https://www.suriyan.name/Module/book_Permission_to%20add_sub_pages