× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use hasPerm
I try to use this function in my code 
but even using the 

generates the problem with other code first with JS part. without it the code works fine but i need to control some permissions.

I understand it is a kind of interference with something but I have no idea where...

What am i doing wrong?

I've checked the hasPerm implementation and found that I can skip the id parameter and it will be set by hasPerm itself so i deleted the id.
The short version with permissions only works in my case.
What are you trying to accomplish? I don't see any javascript there. Try this

die("Has permission);
die("Does not have permission");

Forum Jump:

Users browsing this thread: 1 Guest(s)