Skip to content

directus permissions for basic user for whitelabelling#450

Merged
spashii merged 1 commit intomainfrom
testing
Feb 17, 2026
Merged

directus permissions for basic user for whitelabelling#450
spashii merged 1 commit intomainfrom
testing

Conversation

@spashii
Copy link
Member

@spashii spashii commented Feb 17, 2026

Summary by CodeRabbit

  • New Features
    • Implemented conditional file access permissions based on folder locations, enabling fine-grained resource control and visibility management
    • Extended user permissions to support logo field functionality, enhancing profile customization capabilities
    • Expanded file metadata visibility with access to comprehensive file details including metadata, dimensions, creation/modification timestamps, and storage information for better file management

@spashii spashii merged commit e138301 into main Feb 17, 2026
13 of 14 checks passed
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 17, 2026

Caution

Review failed

The pull request is closed.

Walkthrough

This PR reorders JSON properties in the folders sync configuration for aesthetic consistency and extends Directus permissions for files and users. A new conditional read permission for directus_files is introduced with folder-based filtering logic, while directus_users field access is expanded to include whitelabel_logo.

Changes

Cohort / File(s) Summary
JSON Property Reordering
echo/directus/sync/collections/folders.json
Reordered object properties to place name before parent and _syncId last for consistent schema organization. No functional changes.
Permissions Configuration
echo/directus/sync/collections/permissions.json
Added new directus_files read permission with nested folder-hierarchy filtering (matches "custom_logos", "Public", or Public parent/grandparent chains). Expanded directus_users field access with whitelabel_logo for both read and update actions. Included comprehensive file metadata fields in new directive entry.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch testing

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants