silverstripe-contentreview/src
Mo Alsharaf 1cf0f01a35
NEW Allow for optional can permission method for content review (#152)
* Allow for optional can permission method for content review

* Content Review permission logic

With the new `canReviewContent()` permission checker we only need to check the permission is set for the user and `canBeReviewedBy()` will always check if the page object is due for review by its owner.

Thus removed redundant logic in `canUseReviewContent()` and accordingly renamed the class filename for additional context.

Co-authored-by: Jared Dreyer <jared.dreyer@silverstripe.com>
2022-06-22 12:25:59 +12:00
..
Compatibility API Remove Translatable compatibility logic 2018-01-09 12:26:56 +13:00
Extensions NEW Allow for optional can permission method for content review (#152) 2022-06-22 12:25:59 +12:00
Forms NEW Allow for optional can permission method for content review (#152) 2022-06-22 12:25:59 +12:00
Jobs ENH PHP 8.1 compatibility 2022-04-13 10:23:56 +12:00
Models Use square arrays 2017-09-11 12:56:05 +12:00
Reports ENH PHP 8.1 compatibility 2022-04-13 10:23:56 +12:00
Tasks changed 'option' variable name to 'options' in places its used 2018-08-22 08:43:44 +12:00
Traits NEW Allow for optional can permission method for content review (#152) 2022-06-22 12:25:59 +12:00