Contracts
5 months ago
Facades
5 months ago
Migrations
5 months ago
Traits
5 months ago
CampaignPermissions.php
5 months ago
DonationFormPermissions.php
5 months ago
DonationPermissions.php
5 months ago
DonorPermissions.php
5 months ago
EventPermissions.php
5 months ago
ReportsPermissions.php
5 months ago
SensitiveDataPermissions.php
5 months ago
SettingsPermissions.php
5 months ago
SubscriptionPermissions.php
5 months ago
UserPermission.php
5 months ago
CampaignPermissions.php
21 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\Framework\Permissions; |
| 4 | |
| 5 | /** |
| 6 | * Campaigns do not have custom capabilities, so we use the same as donation forms. |
| 7 | * |
| 8 | * @since 4.14.0 |
| 9 | */ |
| 10 | class CampaignPermissions extends DonationFormPermissions |
| 11 | { |
| 12 | |
| 13 | /** |
| 14 | * @since 4.14.0 |
| 15 | */ |
| 16 | public function canViewPrivate(): bool |
| 17 | { |
| 18 | return $this->canEdit(); |
| 19 | } |
| 20 | } |
| 21 |