ACL - make a tab temporarily editable after publication

From SMTX Wiki
Jump to navigation Jump to search

WIth ACLs, you can set read/write access on tabs.

But, after a publication flow has started, all fields are locked, and the ACLS do no longer apply.

Our Best practice: - set all fields to 'editable when locked' - there is a query for this purpose: https://dev.ssp7.smt-x.com/common/Admin/WsCallAddEdit.aspx?genericid=400

   name: SYS - Make all template parts editable when locked for template guid

Next, create ACLs that hand out read/write rights, when the ervice is locked. We do NOT unlock the service when publication has started.

Pergapedia holds gvariables, that are created on the fly. set an ACL on the tab that you want to open up, giving edit rights to selected Persona, with this extra Javascript:

const DataTab = 'DataManagement';

return CommonInterface.callWebservice('JS-Pergapedia - CheckService Tab Custom Access', {

   'ServiceGuid': g_serviceguid, 
   'PersonId': g_personid,
   'DataTab' : DataTab
}) === 'Allow' ? true : false;


This call the Webservice 'JS-Pergapedia - CheckService Tab Custom Access' when OK, it will add the user's ID to the variable, granting access

with an Action FOrm, the user can request access