@@ -351,23 +351,23 @@ validate(_VHost, <<"operator_policy">>, Name, Term, _User) ->
351351 Name , operator_policy_validation (), Term ).
352352
353353notify (VHost , <<" policy" >>, Name , Term , ActingUser ) ->
354+ update_policies (VHost ),
354355 rabbit_event :notify (policy_set , [{name , Name }, {vhost , VHost },
355- {user_who_performed_action , ActingUser } | Term ]),
356- update_policies (VHost );
356+ {user_who_performed_action , ActingUser } | Term ]);
357357notify (VHost , <<" operator_policy" >>, Name , Term , ActingUser ) ->
358+ update_policies (VHost ),
358359 rabbit_event :notify (policy_set , [{name , Name }, {vhost , VHost },
359- {user_who_performed_action , ActingUser } | Term ]),
360- update_policies (VHost ).
360+ {user_who_performed_action , ActingUser } | Term ]).
361361
362362notify_clear (VHost , <<" policy" >>, Name , ActingUser ) ->
363+ update_policies (VHost ),
363364 rabbit_event :notify (policy_cleared , [{name , Name }, {vhost , VHost },
364- {user_who_performed_action , ActingUser }]),
365- update_policies (VHost );
365+ {user_who_performed_action , ActingUser }]);
366366notify_clear (VHost , <<" operator_policy" >>, Name , ActingUser ) ->
367+ update_policies (VHost ),
367368 rabbit_event :notify (operator_policy_cleared ,
368369 [{name , Name }, {vhost , VHost },
369- {user_who_performed_action , ActingUser }]),
370- update_policies (VHost ).
370+ {user_who_performed_action , ActingUser }]).
371371
372372% %----------------------------------------------------------------------------
373373
0 commit comments