1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-21 03:08:40 +01:00
phorge-phorge/src/applications/phame/capability/PhameBlogCreateCapability.php
Chad Little 37df419266 Add Can Create Policy Capability to Phame Blogs
Summary: Larger (open) installs may want to restrict Blog to formal entities, like with Phriction.

Test Plan: Set policy to administrators, have notchad try to create a blog. See error.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D14433
2015-11-08 07:00:18 -08:00

16 lines
339 B
PHP

<?php
final class PhameBlogCreateCapability
extends PhabricatorPolicyCapability {
const CAPABILITY = 'phame.blog.default.create';
public function getCapabilityName() {
return pht('Can Create Blogs');
}
public function describeCapabilityRejection() {
return pht('You do not have permission to create a blog.');
}
}