Fix a security issue that allowed anybody to apply a transition to any profile.
Fix #135 Ref !80 (merged)