Fix #1190 don't create group when getPermission()

Extra space after `def`