summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorMayank Sharma <mayank8019@gmail.com>2019-07-09 14:55:10 +0530
committerMayank Sharma <mayank8019@gmail.com>2019-07-09 16:20:27 +0530
commit212f531ee73686cde7f1cbf93e45f961845ac5eb (patch)
treead7aa3eb126fd115793381e41e94d5a243849165 /client
parent83b1c44f03680ec000f4e557ea19c9102ad88513 (diff)
downloadgvfs-212f531ee73686cde7f1cbf93e45f961845ac5eb.tar.gz
google: Check ownership in is_owner() without additional HTTP request
Earlier, we were fetching ACL feed of an entry and then checking the ownership by comparing account identity with elements from this feed. This was slow due to Network IO being performed while checking ownership. We now use GDataAuthors on a GDataEntry to get the list of "owners" of the file. We then use the GoaObject stored on GDataGoaAuthorizer to get the account which is being used by GDataService. Finally, we take the email address of account and compare them to check the ownership. This method now runs without anymore additional network requests.
Diffstat (limited to 'client')
0 files changed, 0 insertions, 0 deletions