 
   setParticipantPermission: (nickname, permission) ->
 
-    return  if (not permission?) and @permissions.get nickname
-
-    permission ?= if @settings.get 'readOnly' then 'read' else 'edit'
     @permissions.set nickname, permission
 
 
   removeParticipantPermissions: (nickname) ->
 
-    return  unless @permissions.get nickname
-
     @permissions.delete nickname
+
+
+  getMyPermission: -> @permissions.get nick()
+
+
+  setMyPermission: (permission) ->
+
+    permission = 'edit'  if @amIHost # override for host
+    @setParticipantPermission nick(), permission
 
 
   getMyWatchers: ->

      @statusBar.createParticipantAvatar nickname, no

      if @amIHost
        @setParticipantPermission nickname
        @setMachineUser [nickname]




  addParticipant: (account) ->

    { hash, nickname } = account.profile

    val   = { nickname, hash }
    index = @participants.indexOf val, (a, b) -> a.nickname is b.nickname

    @participants.push val  if index is -1
    @setMyPermission 'edit' if @amIHost


  watchParticipant: (nickname) -> @myWatchMap.set nickname, nickname
