Skip to content

Commit

Permalink
fix: adminPath
Browse files Browse the repository at this point in the history
  • Loading branch information
akastercomcom committed Sep 22, 2023
1 parent 42054e1 commit 8cdefa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/modelController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default class ModelController {

async isAdmin(modelName: string): Promise<void> {
this.isLoggedIn();
const adminPath = Path.app(modelName);
const adminPath = `/manage_app/${modelName}/config/admin`;
const adminList = await this.ain.getValue(adminPath);
if(!adminList[this.ain.getAddress()]) {
throw new Error('You are not admin');
Expand Down

0 comments on commit 8cdefa9

Please sign in to comment.