question

angelm avatar image
angelm asked

Employee Permissions - How to know if the active employee has permission to do something?

I had being experimenting this issue since I made some updates and upgrades in gradle. I migrated the project from AppCompat to Android X also.

I already had this code in my app, but now is not working.

  1. Roles.isPermissionAllowed("ADD_CUSTOM_DISCOUNT", "com.clover.register", activeEmployee.getId(), null)

But Roles cannot be resolved since I update clover SDK to a CFP compatible version. I tried to solve this by other way, but is not clear to me what can I do.

Thanks in advance

station pro
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community