for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Tinyissue package.
*
* (c) Mohamed Alsharaf <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tinyissue\Extensions\Policies;
use Tinyissue\Contracts\Model\UserInterface;
trait AdminAccess
{
public function before($user)
if ($user instanceof UserInterface && $user->isAdmin()) {
return true;
}