Rohan Sharma
07/15/2024, 9:13 AMRishabh Poddar
07/15/2024, 9:16 AMcheck
api based on changes I do to the policy editor:
• I have two roles (see screenshot):
◦ admin
◦ viewer
• I have created a user and assigned them the admin
role.
• Now in an API, i do this:
let check = await permit.check(userId, "read", {
type: "red_button",
tenant: req.session!.getTenantId()
});
• Based on the policy edit, i should get a true
for this user, and false
if I change red_button
to blue_button
. Which I do.
• The problem is, if i modify the the policy edit to uncheck read
from red button under admin (sane save), the check
function still returns true
. Now if i check all the actions for red button for admin (and save), and then, uncheck everything (and save), then the check
function starts to return false
.
Am i missing something?Rishabh Poddar
07/15/2024, 11:43 AMPermit Support Automation
07/15/2024, 3:29 PMPeter Cosemans
07/15/2024, 3:54 PMPeter Cosemans
07/15/2024, 3:55 PMPermit Support Automation
07/15/2024, 8:03 PMPermit Support Automation
07/16/2024, 8:44 AMLawrence Franklin Chukwudalu
07/16/2024, 8:47 AMNguyen Pham
07/16/2024, 3:43 PMPermit Support Automation
07/16/2024, 11:52 PMPermit Support Automation
07/16/2024, 11:59 PMFadahunsi Oluwaseyi Samuel
07/17/2024, 3:17 AMyadu nandan
07/18/2024, 1:14 AMLawrence Franklin Chukwudalu
07/19/2024, 11:52 AMPermit Support Automation
07/19/2024, 12:50 PMPermit Support Automation
07/19/2024, 4:36 PMPermit Support Automation
07/19/2024, 6:51 PMyogesh gurav
07/19/2024, 6:55 PMyogesh gurav
07/19/2024, 6:56 PMyogesh gurav
07/19/2024, 6:57 PMyogesh gurav
07/19/2024, 7:00 PMPermit Support Automation
07/21/2024, 7:50 AMRalph
07/22/2024, 7:11 PMRohan Sharma
07/23/2024, 5:57 AMPermit Support Automation
07/23/2024, 4:59 PMp pal
07/23/2024, 5:13 PMScott Musser (WEI)
07/23/2024, 10:13 PMScott Musser (WEI)
07/23/2024, 10:13 PMScott Musser (WEI)
07/23/2024, 10:13 PM