anchor.diff:  
       ok = fslogic_perms:check_file_perms(FullFileName, UserDoc, FileDoc, owner),
   
  -    %todo reset acl's
       NewFile = fslogic_meta:update_meta_attr(File, ctime, utils:time()),
       NewFile1 = FileDoc#db_document{record = NewFile#file{perms = Perms}},
       {ok, _} = fslogic_objects:save_file(NewFile1),
  
positive.code:             {SH, File_id} = fslogic_utils:get_sh_and_id(?CLUSTER_FUSE_ID, Storage, FileId),
              storage_files_manager:chmod(SH, File_id, Perms)
      end,
  
      #atom{value = ?VOK}.
  
  
negative.code: %% ====================================================================
  set_acl(FullFileName, Entities) ->
      true = lists:all(fun(X) -> is_record(X, accesscontrolentity) end, Entities),
      {ok, #db_document{record = #file{location = FileLoc, type = Type, perms = Perms} = FileDoc}} = fslogic_objects:get_file(FullFileName),
      case Entities of
          [] -> ok;
          _ -> #atom{value = ?VOK} = fslogic_req_generic:change_file_perms(FullFileName, 0)
      end,
      #file{} = fslogic_meta:update_meta_attr(FileDoc, acl, Entities, true),
  
  