[PR #2299] [CLOSED] Allow users to create roles when creating users #5973

Closed
opened 2026-02-05 10:21:40 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/BookStackApp/BookStack/pull/2299
Author: @timoschwarzer
Created: 10/1/2020
Status: Closed

Base: masterHead: allow-creating-user-roles


📝 Commits (1)

  • b0f0a7b Allow users to create roles when creating users

📊 Changes

7 files changed (+66 additions, -3 deletions)

View changed files

📝 app/Http/Controllers/UserController.php (+24 -3)
resources/js/components/create-user-role.js (+24 -0)
📝 resources/js/components/index.js (+2 -0)
📝 resources/lang/de/settings.php (+1 -0)
📝 resources/lang/de_informal/settings.php (+1 -0)
📝 resources/lang/en/settings.php (+1 -0)
📝 resources/views/users/form.blade.php (+13 -0)

📄 Description

I often create a new role for each user to have granular control over user permissions. This PR makes this easier by adding an option to create a new role on the fly while creating a new user:

image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/BookStackApp/BookStack/pull/2299 **Author:** [@timoschwarzer](https://github.com/timoschwarzer) **Created:** 10/1/2020 **Status:** ❌ Closed **Base:** `master` ← **Head:** `allow-creating-user-roles` --- ### 📝 Commits (1) - [`b0f0a7b`](https://github.com/BookStackApp/BookStack/commit/b0f0a7b57cde5b2a9eee48a3cad6a1afdab4ac98) Allow users to create roles when creating users ### 📊 Changes **7 files changed** (+66 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `app/Http/Controllers/UserController.php` (+24 -3) ➕ `resources/js/components/create-user-role.js` (+24 -0) 📝 `resources/js/components/index.js` (+2 -0) 📝 `resources/lang/de/settings.php` (+1 -0) 📝 `resources/lang/de_informal/settings.php` (+1 -0) 📝 `resources/lang/en/settings.php` (+1 -0) 📝 `resources/views/users/form.blade.php` (+13 -0) </details> ### 📄 Description I often create a new role for each user to have granular control over user permissions. This PR makes this easier by adding an option to create a new role on the fly while creating a new user: ![image](https://user-images.githubusercontent.com/8849554/94804277-d5da0d80-03ea-11eb-8aa0-c46e8a6cdc13.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 10:21:40 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#5973