mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
parent
4dcf256371
commit
850e3139ee
1 changed files with 6 additions and 0 deletions
|
@ -61,6 +61,12 @@ const STAGES = {
|
|||
return Promise.resolve();
|
||||
}
|
||||
|
||||
if (typeof apiImpl.permissions === 'object' && apiImpl.permissions.before) {
|
||||
tasks.push(function beforePermissions() {
|
||||
return apiImpl.permissions.before(frame);
|
||||
});
|
||||
}
|
||||
|
||||
tasks.push(function doPermissions() {
|
||||
return apiUtils.permissions.handle(
|
||||
Object.assign({}, apiConfig, apiImpl.permissions),
|
||||
|
|
Loading…
Add table
Reference in a new issue