Bug fix for IsOwner permission