mirror of
https://github.com/ONLYOFFICE/sdkjs-forms.git
synced 2026-03-31 10:23:35 +08:00
[oform] Add role.js to config
This commit is contained in:
@ -73,7 +73,12 @@
|
||||
*/
|
||||
OForm.prototype.addRole = function(roleSettings)
|
||||
{
|
||||
let name = roleSettings instanceof AscOForm.CRoleSettings ? roleSettings.getName() : roleSettings;
|
||||
let name = "";
|
||||
if ("string" === typeof roleSettings)
|
||||
name = roleSettings;
|
||||
else if (roleSettings instanceof AscOForm.CRoleSettings)
|
||||
name = roleSettings.getName();
|
||||
|
||||
if (this.haveRole(name))
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user