<?php

namespace Planaday\Platform\WordpressConfig;

use Planaday\Platform\PlatformAbstraction\UserService;

class WPUserService implements UserService {

	public function isAdmin(): bool {
		return current_user_can('manage_options');
	}

	public function can(string $action, ...$args):bool {
		return current_user_can($action, $args);
	}
}