Role / User Access For Home Page #5086

Closed
opened 2026-02-05 09:39:08 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @RyanH264 on GitHub (Dec 19, 2024).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

Hi Bookstack community.
On my bookstack application I have edited the home page blade file to contain hyper links to some external websites that a lot of my users use frequently. I want to add a new user / role to my bookstack application, but I don't want them to have access to these links. Is there any way that I can restrict access to the home page for a role in bookstack?

I'm guessing I could do it with some php cleverness, but wanted to get a second opinion before I go playing Dr. Frankenstein with my bookstack application any further.

Exact BookStack Version

v24.02.3

Log Content

No log content as the issue is more related to myself not knowing the best way to add a desired function.

Hosting Environment

Amazon AWS Windows Server 2022 running Xampp, Apache, mySQL.

Originally created by @RyanH264 on GitHub (Dec 19, 2024). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario Hi Bookstack community. On my bookstack application I have edited the home page blade file to contain hyper links to some external websites that a lot of my users use frequently. I want to add a new user / role to my bookstack application, but I don't want them to have access to these links. Is there any way that I can restrict access to the home page for a role in bookstack? I'm guessing I could do it with some php cleverness, but wanted to get a second opinion before I go playing Dr. Frankenstein with my bookstack application any further. ### Exact BookStack Version v24.02.3 ### Log Content No log content as the issue is more related to myself not knowing the best way to add a desired function. ### Hosting Environment Amazon AWS Windows Server 2022 running Xampp, Apache, mySQL.
OVERLORD added the 🐕 Support label 2026-02-05 09:39:08 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Dec 19, 2024):

Yeah, There's no direct simple way for this built in.

There's a kinda complex way you could have role/permission controlled links on the homepage, by setting the homepage option to be a "Specific Page" (in customization settings) then, in that page, use include tags for the permission controlled content, then on the included pages set custom page-level permissions for roles as required.

@ssddanbrown commented on GitHub (Dec 19, 2024): Yeah, There's no direct simple way for this built in. There's a kinda complex way you could have role/permission controlled links on the homepage, by setting the homepage option to be a "Specific Page" (in customization settings) then, in that page, use [include tags](https://www.bookstackapp.com/docs/user/reusing-page-content/#include-tags) for the permission controlled content, then on the included pages set custom page-level permissions for roles as required.
Author
Owner

@RyanH264 commented on GitHub (Dec 20, 2024):

Thanks Dan.

I might try a hybrid of both options and see how I go. Happy to mark this support issue as closed.

@RyanH264 commented on GitHub (Dec 20, 2024): Thanks Dan. I might try a hybrid of both options and see how I go. Happy to mark this support issue as closed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5086