You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

29 lines
587 B

<?php
namespace App\Policies\Projects;
use App\Entities\Projects\Issue;
use App\Entities\Users\User;
use Illuminate\Auth\Access\HandlesAuthorization;
class IssuePolicy
{
use HandlesAuthorization;
public function create(User $user, Issue $issue)
{
return true;
}
/**
* Determine whether the user can add comment to an issue.
*
* @param \App\Entities\Users\User $user
* @param \App\Entities\Projects\Issue $issue
* @return bool
*/
public function commentOn(User $user, Issue $issue)
{
return true;
}
}