Otp
1 year ago
AccessToken.php
11 months ago
Auth.php
2 years ago
Capabilities.php
1 year ago
DataEncryption.php
1 year ago
Nonce.php
3 years ago
UniqueIdentifier.php
3 years ago
Capabilities.php
28 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WPStaging\Framework\Security; |
| 4 | |
| 5 | /** |
| 6 | * Class Capabilities |
| 7 | * |
| 8 | * This class should return capabilities to be used in all |
| 9 | * places where we do a capability check on the plugin. |
| 10 | * |
| 11 | * @package WPStaging\Framework\Security |
| 12 | */ |
| 13 | class Capabilities |
| 14 | { |
| 15 | /** |
| 16 | * @var string |
| 17 | */ |
| 18 | const WPSTG_VISITOR_ROLE = 'wpstg_visitor'; |
| 19 | |
| 20 | /** |
| 21 | * @return string The required capability to manage WPSTAGING. |
| 22 | */ |
| 23 | public function manageWPSTG() |
| 24 | { |
| 25 | return 'manage_options'; |
| 26 | } |
| 27 | } |
| 28 |