mirror of
https://github.com/ONLYOFFICE/sdkjs-forms.git
synced 2026-03-31 10:23:35 +08:00
[oform] Implement method to remove role
Also implement method to count the number of fields in field group
This commit is contained in:
@ -272,7 +272,7 @@
|
||||
/**
|
||||
* @returns {AscOForm.CUserMaster}
|
||||
*/
|
||||
CDocument.prototype.getDefaultUser = function()
|
||||
CDocument.prototype.getDefaultUserMaster = function()
|
||||
{
|
||||
return this.DefaultUser;
|
||||
};
|
||||
@ -394,6 +394,18 @@
|
||||
|
||||
return max;
|
||||
};
|
||||
CDocument.prototype.getAllFieldsByUserMaster = function(userMaster)
|
||||
{
|
||||
let fields = [];
|
||||
for (let index = 0, count = this.FieldMasters.length; index < count; ++index)
|
||||
{
|
||||
let fieldMaster = this.FieldMasters[index];
|
||||
if (fieldMaster.checkUser(userMaster))
|
||||
fields.push(fieldMaster);
|
||||
}
|
||||
|
||||
return fields;
|
||||
};
|
||||
CDocument.prototype.onChangeFieldGroups = function()
|
||||
{
|
||||
if (!this.OForm)
|
||||
|
||||
Reference in New Issue
Block a user