added roles and organizations
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-15 20:59:32 -07:00
parent 2ca3860557
commit 177f122c10
57 changed files with 6378 additions and 247 deletions
+29
View File
@@ -0,0 +1,29 @@
<?php
namespace App;
enum FolderVisibility: string
{
case Private = 'private';
case Workspace = 'workspace';
/**
* Get the human-friendly label for the visibility.
*/
public function label(): string
{
return match ($this) {
self::Private => 'Private',
self::Workspace => 'Shared with workspace',
};
}
/**
* Determine whether a folder at this visibility is opened up to every
* member of its workspace.
*/
public function isSharedWithWorkspace(): bool
{
return $this === self::Workspace;
}
}