@@ -185,12 +185,12 @@ rolePermissionToText = \case
185185 OrgProjectCreate -> " org:create_project"
186186 TeamView -> " team:view"
187187 TeamManage -> " team:manage"
188- NotificationHubEntryView -> " notification:hub_entry :view"
189- NotificationHubEntryUpdate -> " notification:hub_entry :update"
190- NotificationSubscriptionView -> " notification:subscription :view"
191- NotificationSubscriptionManage -> " notification:subscription :manage"
192- NotificationDeliveryMethodView -> " notification:delivery_method :view"
193- NotificationDeliveryMethodManage -> " notification:delivery_method :manage"
188+ NotificationHubEntryView -> " notification_hub_entry :view"
189+ NotificationHubEntryUpdate -> " notification_hub_entry :update"
190+ NotificationSubscriptionView -> " notification_subscription :view"
191+ NotificationSubscriptionManage -> " notification_subscription :manage"
192+ NotificationDeliveryMethodView -> " notification_delivery_method :view"
193+ NotificationDeliveryMethodManage -> " notification_delivery_method :manage"
194194
195195rolePermissionFromText :: Text -> Maybe RolePermission
196196rolePermissionFromText = \ case
@@ -209,6 +209,12 @@ rolePermissionFromText = \case
209209 " org:create_project" -> Just OrgProjectCreate
210210 " team:view" -> Just TeamView
211211 " team:manage" -> Just TeamManage
212+ " notification_hub_entry:view" -> Just NotificationHubEntryView
213+ " notification_hub_entry:update" -> Just NotificationHubEntryUpdate
214+ " notification_subscription:view" -> Just NotificationSubscriptionView
215+ " notification_subscription:manage" -> Just NotificationSubscriptionManage
216+ " notification_delivery_method:view" -> Just NotificationDeliveryMethodView
217+ " notification_delivery_method:manage" -> Just NotificationDeliveryMethodManage
212218 _ -> Nothing
213219
214220instance Hasql. EncodeValue RolePermission where
0 commit comments