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