Fixed offline permissions bug