Member Junction
    Preparing search index...
    • Determine whether user may Update/Delete a share row they don't own via role permissions. Returns true when the user is the grantor, or when the optional additional(userId) predicate says they have some domain-specific management right (e.g., dashboard owner, Owner-level grantee).

      Use:

      override CheckPermissions(type, throwError) {
      if ((type === Update || Delete) && this.ActiveUser &&
      checkShareManagePermission(this.ActiveUser, this.SharedByUserID, (u) => …)) {
      return true;
      }
      return super.CheckPermissions(type, throwError);
      }

      Parameters

      • user: UserInfo
      • grantorUserId: string
      • Optionaladditional: (userId: string) => boolean

      Returns boolean