canDo('classified.classified.approve')) { return true; } return false; } /** * Determine if the given user can approve the given classified. * * @param Authenticatable $user * * @return bool */ public function submit(Authenticatable $user, Classified $classified) { if ($user->canDo('classified.classified.submit')) { return true; } return false; } /** * Determine if the given user can approve the given classified. * * @param Authenticatable $user * * @return bool */ public function publish(Authenticatable $user, Classified $classified) { if ($user->canDo('classified.classified.publish')) { return true; } return false; } /** * Determine if the given user can approve the given classified. * * @param Authenticatable $user * * @return bool */ public function unpublish(Authenticatable $user, Classified $classified) { if ($user->canDo('classified.classified.unpublish')) { return true; } return false; } /** * Determine if the given user can approve the given classified. * * @param Authenticatable $user * * @return bool */ public function archive(Authenticatable $user, Classified $classified) { if ($user->canDo('classified.classified.archive')) { return true; } return false; } /** * Determine if the given user can approve the given classified. * * @param Authenticatable $user * * @return bool */ public function unarchive(Authenticatable $user, Classified $classified) { if ($user->canDo('classified.classified.unarchive')) { return true; } return false; } /** * Determine if the given user can approve the given classified. * * @param Authenticatable $user * * @return bool */ public function reject(Authenticatable $user, Classified $classified) { if ($user->canDo('classified.classified.reject')) { return true; } return false; } }