Check if a user has a certain Role: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

12 November 2025

  • curprev 16:2116:21, 12 November 2025 Smtxwiki talk contribs 645 bytes +645 Created page with "Via a webservice, you can check if the logged in user has a certain role. You need the webservice called 'Logged in person has role' (DEV: https://dev.ssp7.smt-x.com/Common/Admin/WsCallAddEdit.aspx?genericid=495) var rolename = g_fieldvalues.filter(function (fld) { return fld.name === "RoleName"; }).map(function (fld) { return fld.value; }).join(""); return StudioInterface.loggedInPersonHasRole(rolename); You can then use this Webservice in a form, with a hidden field..."