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

@ -324,10 +324,13 @@ export abstract class EgwApp
*
* @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
*/
_push_grant_check(pushData : PushData, grant_fields : string[]) : boolean
_push_grant_check(pushData : PushData, grant_fields : string[], appname? : string) : boolean
{
let grants = egw.grants(this.appname);
let grants = egw.grants(appname || this.appname);
// No grants known
if(!grants) return true;