Added Feedback section.

This commit is contained in:
2024-04-23 19:30:56 +05:00
parent 491249c8d8
commit 8c353a49b7
44 changed files with 1050 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<?php declare(strict_types=1);
namespace App\Policies;
use App\Models\ProjectFeedback;
use App\Models\User;
final readonly class ProjectFeedbackPolicy extends Policy
{
public function viewAny(User $user): bool
{
return $user->hasPermission('project-feedback.view');
}
public function view(User $user, ProjectFeedback $projectFeedback): bool
{
return $user->hasPermission('project-feedback.view');
}
}