cerca

lean forum software (pmc local branch)
git clone http://git.permacomputing.net/repos/cerca.git # read-only access
Log | Files | Refs | README | LICENSE

constants.go (783B)


      1 package constants
      2 
      3 import "time"
      4 
      5 const (
      6 	MODLOG_RESETPW        = iota
      7 	MODLOG_ADMIN_VETO     // vetoing a proposal
      8 	MODLOG_ADMIN_MAKE     // make an admin
      9 	MODLOG_REMOVE_USER    // remove a user
     10 	MODLOG_ADMIN_ADD_USER // add a new user
     11 	MODLOG_ADMIN_DEMOTE   // demote an admin back to a normal user
     12 	MODLOG_ADMIN_CONFIRM  // confirming a proposal
     13 	MODLOG_ADMIN_PROPOSE_DEMOTE_ADMIN
     14 	MODLOG_ADMIN_PROPOSE_MAKE_ADMIN
     15 	MODLOG_ADMIN_PROPOSE_REMOVE_USER
     16 	/* NOTE: when adding new values, only add them after already existing values! otherwise the existing variables will
     17 	* receive new values which affects the stored values in table moderation_log */
     18 )
     19 
     20 const PROPOSAL_VETO = false
     21 const PROPOSAL_CONFIRM = true
     22 const PROPOSAL_SELF_CONFIRMATION_WAIT = time.Hour * 24 * 7 /* 1 week */