Merge pull request #292 from jsirish/bugfix/adminPermissionProvider

BUGFIX CommentAdmin implements PermissionProvider
This commit is contained in:
Robbie Averill 2019-07-15 22:03:28 +01:00 committed by GitHub
commit f4c82f238e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,7 @@ use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\Form; use SilverStripe\Forms\Form;
use SilverStripe\Forms\Tab; use SilverStripe\Forms\Tab;
use SilverStripe\Forms\TabSet; use SilverStripe\Forms\TabSet;
use SilverStripe\Security\PermissionProvider;
use SilverStripe\Security\Security; use SilverStripe\Security\Security;
/** /**
@ -15,7 +16,7 @@ use SilverStripe\Security\Security;
* *
* @package comments * @package comments
*/ */
class CommentAdmin extends LeftAndMain class CommentAdmin extends LeftAndMain implements PermissionProvider
{ {
private static $url_segment = 'comments'; private static $url_segment = 'comments';