Changed a check for edit-access