 
   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: ->


          @stateMachine.transition 'Active'
          @updateSessionStartingProgress 90

          kd.utils.wait 2000, =>
            @updateSessionStartingProgress 100

      @statusBar.createParticipantAvatar nickname, no

      if @amIHost
        @setParticipantPermission nickname, 'read'
        @setMachineUser [nickname]


