copied displayPermissionsError from EditPage in order to properly display errors