[permissions] fix error case -.-