diff --git a/hiboo/models.py b/hiboo/models.py index c5186cb1a5d914b9adf87d73acb81aae6b1f5657..fc45946b6ee6670aa4179d6c1209d393d187511d 100644 --- a/hiboo/models.py +++ b/hiboo/models.py @@ -249,7 +249,7 @@ class Profile(db.Model): return { name: transition for name, transition in Profile.TRANSITIONS.items() if transition[0] == self.status and not self.transition_step - and (actor.is_admin or (self.uuid == actor.uuid and not transition[3])) + and (actor.is_admin or (self.user.uuid == actor.uuid and not transition[3])) } def transition_delta(self, formatted=False):