Changed update permissions logic