 
 class ManageNodeAffiliations extends PrivilegedOperation
     requiredAffiliation: =>
-        if @actorAffiliation is 'owner'
-            yes
-        else if @nodeConfig.channelType is 'topic' and
-                @actorAffiliation is 'moderator'
-            yes
+        if @nodeConfig.channelType is 'topic'
+            'moderator'
         else
-            no
+            'owner'
 
     privilegedTransaction: (t, cb) ->
         async.series @req.affiliations.map(({user, affiliation}) =>


class ManageNodeSubscriptions extends PrivilegedOperation
    requiredAffiliation: =>
        if @actorAffiliation is 'owner'
            yes
        else if @nodeConfig.channelType is 'topic' and
                @actorAffiliation is 'moderator'
            yes
        else
            no

    privilegedTransaction: (t, cb) ->
        defaultAffiliation = null


class AuthorizeSubscriber extends PrivilegedOperation
    requiredAffiliation: =>
        if @nodeConfig.channelType is 'topic'
            'moderator'
        else
            'owner'

    privilegedTransaction: (t, cb) ->
        if @req.allow
