mirror of
https://github.com/dflow-sh/dflow.git
synced 2026-04-26 13:55:56 +03:00
[PR #62] [MERGED] Restrict api access #338
Labels
No labels
backend
bug
developer
documentation
enhancement
enhancement
enhancement
feature
feature
fix
frontend
frontend
good first issue
help wanted
pull-request
safety-check
security
styles
styles
templates
templates
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/dflow#338
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dflow-sh/dflow/pull/62
Author: @manikanta9176
Created: 4/17/2025
Status: ✅ Merged
Merged: 4/17/2025
Merged by: @manikanta9176
Base:
main← Head:restrict-api-access📝 Commits (3)
331503fchore: added roles field to users collection2bb6c0bchore: added admin access control based on rolea4f09d3chore: restricted access to collections for admins with permissions for CRUD, version reading, and unlocking📊 Changes
11 files changed (+85 additions, -29 deletions)
View changed files
📝
src/payload-types.ts(+2 -0)➕
src/payload/access/isAdmin.ts(+11 -0)📝
src/payload/collections/CloudProviderAccounts/index.ts(+9 -0)📝
src/payload/collections/Deployments/index.ts(+7 -4)📝
src/payload/collections/GitProviders/index.ts(+7 -4)📝
src/payload/collections/Projects/index.ts(+7 -5)📝
src/payload/collections/SSHkeys/index.ts(+7 -4)📝
src/payload/collections/SecurityGroups/index.ts(+7 -4)📝
src/payload/collections/Servers/index.ts(+7 -4)📝
src/payload/collections/Services/index.ts(+7 -4)📝
src/payload/collections/Users/index.ts(+14 -0)📄 Description
#58
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.