metadata-push-hook: fixes issue with adding unmanaged metadata
~
=/ role=(unit (unit role-tag))
(role-for-ship:grp group.update src.bowl)
- =/ =metadatum:store
- (need (peek-metadatum:met %groups group.update))
?~ role ~
+ =/ metadatum=(unit metadatum:store)
+ (peek-metadatum:met %groups group.update)
+ ?: ?& ?=(~ metadatum)
+ (is-managed:grp group.update)
+ ==
+ ~
+ ?: ?& ?=(^ metadatum)
+ !(is-managed:grp group.update)
+ ==
+ ~
?^ u.role
?: ?=(?(%admin %moderator) u.u.role)
`vas
~
?. ?=(%add -.update) ~
- ?: ?& =(src.bowl entity.resource.resource.update)
- ?=(%member-metadata vip.metadatum)
+ ?: ?& ?=(^ metadatum)
+ =(src.bowl entity.resource.resource.update)
+ ?=(%member-metadata vip.u.metadatum)
==
`vas
~
