Fix an error in permission handling: all pages where accessible without