canDo('social.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('social.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('social.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('social.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('social.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('social.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('social.user.reject')) { return true; } return false; } }