[PR #109] [MERGED] Features: Add user roles and custom middleware #89

Closed
opened 2026-05-23 08:40:23 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/appy-one/acebase-server/pull/109
Author: @appy-one
Created: 12/9/2024
Status: Merged
Merged: 12/16/2024
Merged by: @appy-one

Base: masterHead: feature/user-roles-and-custom-middleware


📝 Commits (5)

  • 0ea6db3 Add roles to users, treat users with role 'admin' as administrator
  • 64eb2f8 Add preMiddleware and postMiddleware callbacks to allow adding custom middleware for logging purposes, header processing etc
  • be88c1f change line endings to LF
  • 196e8c9 change line endings to LF
  • 6cb2cd3 change line endings to LF

📊 Changes

16 files changed (+71 additions, -24 deletions)

View changed files

📝 src/middleware/admin-only.ts (+2 -1)
📝 src/middleware/user.ts (+2 -0)
📝 src/routes/auth-delete.ts (+3 -2)
📝 src/routes/auth-signup.ts (+4 -4)
📝 src/routes/auth-update.ts (+4 -1)
📝 src/routes/auth.ts (+0 -4)
📝 src/routes/data-reflect.ts (+2 -1)
📝 src/routes/data-set.ts (+2 -1)
📝 src/routes/data-transaction.ts (+2 -1)
📝 src/routes/data-update.ts (+2 -1)
📝 src/routes/meta-info.ts (+2 -1)
📝 src/rules.ts (+3 -2)
📝 src/schema/user.ts (+5 -0)
📝 src/server.ts (+15 -3)
📝 src/settings/index.ts (+18 -2)
src/shared/admin.ts (+5 -0)

📄 Description

This adds user roles to auth to enable role-based authorization rules, and callback methods to allow adding custom middleware upon server startup


🔄 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/appy-one/acebase-server/pull/109 **Author:** [@appy-one](https://github.com/appy-one) **Created:** 12/9/2024 **Status:** ✅ Merged **Merged:** 12/16/2024 **Merged by:** [@appy-one](https://github.com/appy-one) **Base:** `master` ← **Head:** `feature/user-roles-and-custom-middleware` --- ### 📝 Commits (5) - [`0ea6db3`](https://github.com/appy-one/acebase-server/commit/0ea6db3932ab4ca77418327b51cc665698504476) Add roles to users, treat users with role 'admin' as administrator - [`64eb2f8`](https://github.com/appy-one/acebase-server/commit/64eb2f8a369877fc63d66b5691052eeeaf9489d3) Add `preMiddleware` and `postMiddleware` callbacks to allow adding custom middleware for logging purposes, header processing etc - [`be88c1f`](https://github.com/appy-one/acebase-server/commit/be88c1fde12c38c9b89291e1c1c96b42d1a00d88) change line endings to LF - [`196e8c9`](https://github.com/appy-one/acebase-server/commit/196e8c9a2730c08857049b6b341067301b8325e3) change line endings to LF - [`6cb2cd3`](https://github.com/appy-one/acebase-server/commit/6cb2cd38f9b8ed5041801cc9ba5788b543488e97) change line endings to LF ### 📊 Changes **16 files changed** (+71 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `src/middleware/admin-only.ts` (+2 -1) 📝 `src/middleware/user.ts` (+2 -0) 📝 `src/routes/auth-delete.ts` (+3 -2) 📝 `src/routes/auth-signup.ts` (+4 -4) 📝 `src/routes/auth-update.ts` (+4 -1) 📝 `src/routes/auth.ts` (+0 -4) 📝 `src/routes/data-reflect.ts` (+2 -1) 📝 `src/routes/data-set.ts` (+2 -1) 📝 `src/routes/data-transaction.ts` (+2 -1) 📝 `src/routes/data-update.ts` (+2 -1) 📝 `src/routes/meta-info.ts` (+2 -1) 📝 `src/rules.ts` (+3 -2) 📝 `src/schema/user.ts` (+5 -0) 📝 `src/server.ts` (+15 -3) 📝 `src/settings/index.ts` (+18 -2) ➕ `src/shared/admin.ts` (+5 -0) </details> ### 📄 Description This adds user roles to auth to enable role-based authorization rules, and callback methods to allow adding custom middleware upon server startup --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-23 08:40:23 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/acebase-server#89
No description provided.