Artak Safaryan

Results 12 comments of Artak Safaryan

okay, will check and come back with the result

@thetutlage issue is coming from the Knex https://github.com/knex/knex/pull/2746. ```typescript const db = knex.knex(Object.assign({}, getConfig(), { debug: false })) var modelType = 'users' var modelId = 1 var permissionSlugs = ['delete']...

Hi @MrAhmedElkady , Thanks for the idea, at this moment there is not such a functionality, I'll check and see what's can be done

I appreciate your kind comments and will notify you as soon as there are any updates.

one of the main reason why it's not working because there is no [polymorphic relationship](https://github.com/orgs/adonisjs/discussions/4661) support yet. EDIT. probably some custom solution needs to be applied

HI @retronew , plase check [Getting models from the permission](https://github.com/holoyan/adonisjs-permissions?tab=readme-ov-file#getting-models-for-a-role) section, you can get list of users for certain permission this way ```typescript const models = await Acl.permission(permission).modelsFor(User) ``` same...

yes that will work as well, I'll add few helpfull methods for future release

Agree, they are complex but because of that it allows more flexibility. soon I'll do release related to events and after that will add new methods.

Hi @shahafm7 , thanks for using [adonisjs-permissions](https://github.com/holoyan/adonisjs-permissions), just tried with fresh installed project, your code works fine for me. Are you 100% sure that `scope` column exists on permissions table?...