mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-21 03:08:40 +01:00
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
16 lines
339 B
PHP
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.');
|
|
}
|
|
|
|
}
|