 @canImport = (group) -> canSuper group
 @canSuperdelete = (message) ->
   canSuper message2group message
-@canProtect = canSuperdelete
+@canProtect = canSuperdelete  ## same logic as checkProtected
 
 ## A user has explicit [read] access to a message if they are a coauthor or
 ## they are listed in the 'access' list and the message is published and

      throw new Meteor.Error 'messageUpdate.unauthorized',
        "Insufficient permissions to edit message '#{id}' in group '#{old.group}'"
    checkPrivacy message.private, old, user
  check message,
    #url: Match.Optional String
    title: Match.Optional String

            "Cannot make message public in thread '#{root._id}'"
  null

## Same logic as canProtect
checkProtected = (protect, group, user = Meteor.user()) ->
  if protect? and not canSuper group, false, user
    throw new Meteor.Error 'checkProtected.forbidden',
      "Insufficient permissions to (un)protect message in group '#{group}'"

@canCoauthorsMod = (message, coauthorsMod, client = Meteor.isClient, user = Meteor.user()) ->
  ## Adding coauthors requires no additional permission.
  ## Removing coauthors can be done in the following situations:
