<?php namespace Eform\Instruction\Policies; use Illuminate\Foundation\Auth\User as Authenticatable; trait InstructionCategoryExim { /** * Determine if the given user can approve the given instruction_category. * * @param Authenticatable $user * * @return bool */ public function import(Authenticatable $user) { if ($user->canDo('instruction.instruction_category.import')) { return true; } return false; } /** * Determine if the given user can approve the given instruction_category. * * @param Authenticatable $user * * @return bool */ public function export(Authenticatable $user) { if ($user->canDo('instruction.instruction_category.export')) { return true; } return false; } }