|
@@ -6,6 +6,7 @@ use App\Models\Asset;
|
|
use App\Models\Container;
|
|
use App\Models\Container;
|
|
use App\Models\File;
|
|
use App\Models\File;
|
|
use App\Models\Folder;
|
|
use App\Models\Folder;
|
|
|
|
+use App\Models\Library;
|
|
use App\Models\Plan;
|
|
use App\Models\Plan;
|
|
use App\Models\Project;
|
|
use App\Models\Project;
|
|
use App\Models\Requirement;
|
|
use App\Models\Requirement;
|
|
@@ -31,6 +32,8 @@ enum ActionObjectType: string
|
|
|
|
|
|
case PLAN = "plan";
|
|
case PLAN = "plan";
|
|
|
|
|
|
|
|
+ case LIBRARY = "library";
|
|
|
|
+
|
|
case CONTAINER = "container";
|
|
case CONTAINER = "container";
|
|
|
|
|
|
case CONTAINER_CONTENT = "container_content";
|
|
case CONTAINER_CONTENT = "container_content";
|
|
@@ -47,6 +50,7 @@ enum ActionObjectType: string
|
|
self::TASK => Task::query(),
|
|
self::TASK => Task::query(),
|
|
self::PLAN => Plan::query(),
|
|
self::PLAN => Plan::query(),
|
|
self::REQUIREMENT => Requirement::query(),
|
|
self::REQUIREMENT => Requirement::query(),
|
|
|
|
+ self::LIBRARY => Library::query(),
|
|
self::CONTAINER => Container::query(),
|
|
self::CONTAINER => Container::query(),
|
|
self::CONTAINER_FILE => File::query(),
|
|
self::CONTAINER_FILE => File::query(),
|
|
self::FOLDER => Folder::query(),
|
|
self::FOLDER => Folder::query(),
|
|
@@ -61,6 +65,7 @@ enum ActionObjectType: string
|
|
self::TASK => Task::query()->allowed($id),
|
|
self::TASK => Task::query()->allowed($id),
|
|
self::PLAN => Plan::query(),
|
|
self::PLAN => Plan::query(),
|
|
self::REQUIREMENT => Requirement::query(),
|
|
self::REQUIREMENT => Requirement::query(),
|
|
|
|
+ self::LIBRARY => Library::query()->allowed(),
|
|
self::CONTAINER => Container::query()->allowed($id),
|
|
self::CONTAINER => Container::query()->allowed($id),
|
|
self::CONTAINER_FILE => File::query(),
|
|
self::CONTAINER_FILE => File::query(),
|
|
self::FOLDER => Folder::query(),
|
|
self::FOLDER => Folder::query(),
|