vue-simple-acl icon indicating copy to clipboard operation
vue-simple-acl copied to clipboard

can not send parameter in script

Open morteza-mortezai opened this issue 2 years ago • 1 comments

Hi

I am using with Vuejs3 setup

when I wanna use like this in component

acl.permission('update-post',post_id)

it doesn't work properly

acl.js

setRule('update-post', (user,post_id) =>{ console.log('post_id',post_id); return true })

and in console I get :

post_id undedfined

morteza-mortezai avatar Jun 21 '23 08:06 morteza-mortezai

hello use this style acl.can("update-post", [post_id])) or acl.permission("update-post", [post_id])) its worked for me

doornema avatar Oct 24 '23 11:10 doornema