      });
 +    $(".remote_check_w").change(function(){
 +        if($(this).is(":checked")) {
-+            $("#allownone_check").removeAttr("checked");
++            $("#allowall_check").removeAttr("checked");
 +            $("#allownone_check").removeAttr("checked");
 +             $(".remote_check_b").each( function() {
 +                this.checked = false;

                 $update = true;
             }
         }
@@ -831,13 +855,72 @@
     {
         assert('is_string($remoteentityid)');
 

             WHERE `eid` = ? AND `revisionid` = ?;',
             array($this->_entity->getEid(), $this->_entity->getRevisionid())
         );
@@ -861,12 +975,12 @@
         }
 
         $row = $st->fetchAll(PDO::FETCH_ASSOC);
