cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

how to use Resources["SecurityServices"].EvaluateRuntimePermission(params)

xsu
3-Visitor
3-Visitor

how to use Resources["SecurityServices"].EvaluateRuntimePermission(params)

let params = {
resource: '' /* STRING */,
name: '' /* STRING */,
permission: '' /* STRING */,
type: '' /* STRING */
};
 
// result: BOOLEAN
let result = Resources["SecurityServices"].EvaluateRuntimePermission(params);

I couldn't find any documentation for the parameters, Can someone tell me the meaning of each item in the params ?
ACCEPTED SOLUTION

Accepted Solutions

resource: '*' /* STRING */,
name: 'Entity Name' /* Ex. Test_Thing */,
permission: 'Permission Type' /* Ex. PropertyRead, PropertyWrite, ServiceInvoke */,
type: 'Type of Entity' /* Ex. Thing */

View solution in original post

1 REPLY 1

resource: '*' /* STRING */,
name: 'Entity Name' /* Ex. Test_Thing */,
permission: 'Permission Type' /* Ex. PropertyRead, PropertyWrite, ServiceInvoke */,
type: 'Type of Entity' /* Ex. Thing */

Announcements

Top Tags