Skip to content

Commit 1e73dcf

Browse files
committed
fix: update access configuration to use userConfig instead of api.config
1 parent e32ff77 commit 1e73dcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default (api: IApi) => {
4141
});
4242

4343
api.onGenerateFiles(() => {
44-
const { roles = {} } = api.config.access || {};
44+
const { roles = {} } = api.userConfig.access || {};
4545
const accessTpl = readFileSync(
4646
join(ACCESS_TEMPLATES_DIR, 'core.tpl'),
4747
'utf-8',

0 commit comments

Comments
 (0)