Commits

Zhang Huangbin  committed 6546a6b

Add 'allowedOnly'. Same as 'moderatorsOnly'.

  • Participants
  • Parent commits 13e048b

Comments (0)

Files changed (1)

File src/plugins/sql_alias_access_policy.py

 POLICY_DOMAIN = 'domain'
 POLICY_MEMBERSONLY = 'membersonly'
 POLICY_MODERATORSONLY = 'moderatorsonly'
+POLICY_ALLOWEDONLY = 'allowedOnly'      # Same as @POLICY_MODERATORSONLY
 POLICY_MEMBERSANDMODERATORSONLY = 'membersandmoderatorsonly'
 
 def restriction(dbConn, sqlRecord, smtpSessionData, **kargs):
             return 'DUNNO'
         else:
             return ACTION_REJECT
-    elif policy == POLICY_MODERATORSONLY:
+    elif policy == POLICY_MODERATORSONLY or policy == POLICY_ALLOWEDONLY:
         # Bypass all moderators.
         if sender in moderators:
             return 'DUNNO'