Apply client-side push refactoring to calendar, infolog, timesheet

This commit is contained in:
nathangray
2021-03-04 11:27:35 -07:00
parent dd97c0f316
commit df54dcace4
8 changed files with 57 additions and 312 deletions

View File

@ -199,9 +199,12 @@ var EgwApp = /** @class */ (function () {
*
* @param pushData
* @param grant_fields List of fields in pushData.acl with account IDs that might grant access eg: info_responsible
* @param appname Optional, to check against the grants for a different application. Defaults to this.appname.
*
* @return boolean Entry has ACL access
*/
EgwApp.prototype._push_grant_check = function (pushData, grant_fields) {
var grants = egw.grants(this.appname);
EgwApp.prototype._push_grant_check = function (pushData, grant_fields, appname) {
var grants = egw.grants(appname || this.appname);
// No grants known
if (!grants)
return true;