Check if the current userMaster is a noRole
This commit is contained in:
Ilya Kirillov
2025-09-26 16:45:33 +03:00
parent 8b8364fd48
commit 5e6a7c5867

View File

@ -134,6 +134,10 @@
{ {
return this.Role ? this.Role : ""; return this.Role ? this.Role : "";
}; };
CUserMaster.prototype.isNoRole = function()
{
return (this === AscOForm.getNoRole());
};
CUserMaster.prototype.setColor = function(r, g, b) CUserMaster.prototype.setColor = function(r, g, b)
{ {
let newColor = undefined !== r && null !== r ? new AscWord.CDocumentColor(r, g, b) : undefined; let newColor = undefined !== r && null !== r ? new AscWord.CDocumentColor(r, g, b) : undefined;