Fixed missing '!' causing permission-checks to fail