Running Scripts referring to inaccessible matrices

Discuss the new Quantrix 4 Scripting Feature!

Moderators: Ben G, Moderators

Running Scripts referring to inaccessible matrices

Postby tawanda » Sun Feb 26, 2017 9:30 am

I noted in one of the recent version releases that it is now possible to make scripts refer to a matrix that a user is not given access of in permissions. Kindly advise what we need to add in the script for this to work.
tawanda
Quantrix Forum Member
 
Posts: 6
Joined: Fri Jul 04, 2014 12:50 am

Re: Running Scripts referring to inaccessible matrices

Postby QDirector » Tue Mar 07, 2017 2:48 pm

From our engineering team...

Scripts are now run in the permission profile of the current user. This does not allow the user to modify a matrix they do not have access to. The script author can elevate the privileges of the script being run by using a privileged block. For example

privileged {
|Matrix1::A|.children.create(4)
}

If for some reason the user does not have access to Matrix1 or does not have rights to create items on category A, the privileged block temporarily elevates the privilege of the user in order to perform the actions inside the privileged block.
Mike Salisbury
Director - Quantrix
Official Quantrix support is provided through the IDBS Help Desk via support@quantrix.com
QDirector
Quantrix Forum Member
 
Posts: 126
Joined: Fri Mar 29, 2013 4:30 am

Re: Running Scripts referring to inaccessible matrices

Postby tawanda » Sat Apr 22, 2017 6:11 am

Thanks Mike, this is exactly what I was looking for.
tawanda
Quantrix Forum Member
 
Posts: 6
Joined: Fri Jul 04, 2014 12:50 am


Return to Scripting

Who is online

Users browsing this forum: No registered users and 3 guests