[plugin] Fixed setting permission if non are set

This commit is contained in:
Ferdinand Thiessen 2021-03-19 21:34:49 +01:00
parent 575090552f
commit a4ce273bb1
1 changed files with 4 additions and 2 deletions

View File

@ -33,8 +33,10 @@ interface Backend {
export { Backend };
function setPermissions(object: FG_Plugin.PluginRouteConfig) {
if (object.permissions !== undefined) {
if (object.route.meta === undefined) object.route.meta = {};
object.route.meta['permissions'] = object.permissions;
}
}
function convertRoutes(parent: RouteRecordRaw, children?: FG_Plugin.PluginRouteConfig[]) {