silverstripe-terraformers / silverstripe-embargo-expiry

BSD 3-Clause "New" or "Revised" License
7 stars 7 forks source link

JS Fixes. Apply CMSMain extension. Remove CMS_ACCESS_ prefix. #48

Closed chrispenny closed 5 years ago

chrispenny commented 5 years ago

NON BACKWARDS COMPATIBLE CHANGE

The following permissions have had their names changed. The reason for this change is that (I didn't realise) any permission name with the prefix of CMS_ACCESS_ will be accepted if the user has the permission of CMS_ACCESS_LeftAndMain (see Permission::checkMember()).

CMS_ACCESS_AddEmbargoExpiry
CMS_ACCESS_RemoveEmbargoExpiry

// Are now:
AddEmbargoExpiry
RemoveEmbargoExpiry

Bugfix

Publish button was not being removed when the page was reloaded with an existing PublishOnDate.

Change

Renamed config.yml to extensions.yml and added the CMSMain extension by default.