isReadonly method

bool isReadonly(
  1. User user
)

Implementation

bool isReadonly(User user) {
  return status != StudyStatus.draft || !canEdit(user);
}