mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 16:22:16 +01:00
Add roles for project members; Restrict access to sensitive project values
This commit is contained in:
@@ -75,7 +75,7 @@ class ProjectModelTest extends ModelTestAbstract
|
||||
// Assert
|
||||
$this->assertNotNull($tasksRel);
|
||||
$this->assertCount(3, $tasksRel);
|
||||
$this->assertTrue($tasksRel->first()->is($tasks->first()));
|
||||
$this->assertEqualsIdsOfEloquentCollection($tasks->pluck('id')->toArray(), $tasksRel);
|
||||
}
|
||||
|
||||
public function test_it_has_many_members(): void
|
||||
@@ -91,7 +91,7 @@ class ProjectModelTest extends ModelTestAbstract
|
||||
// Assert
|
||||
$this->assertNotNull($membersRel);
|
||||
$this->assertCount(3, $membersRel);
|
||||
$this->assertTrue($membersRel->first()->is($members->first()));
|
||||
$this->assertEqualsIdsOfEloquentCollection($members->pluck('id')->toArray(), $membersRel);
|
||||
}
|
||||
|
||||
public function test_scope_visible_by_user_filters_so_that_only_public_projects_or_projects_where_the_user_is_member_are_shown(): void
|
||||
|
||||
Reference in New Issue
Block a user