summaryrefslogtreecommitdiffstats
path: root/res/values
diff options
context:
space:
mode:
authorKelvin Kwan <kelvinkwan@google.com>2020-02-20 20:36:23 +0000
committerKelvin Kwan <kelvinkwan@google.com>2020-02-25 17:23:52 +0000
commita649f548711e4f1cb6ba86285fbd731ee3ba533c (patch)
treebfc6407d28584b7dfbd732f0dc8f9797b6950c26 /res/values
parent4505a1787d58c3838c3800d1d89a93201a199d13 (diff)
downloadplatform_packages_apps_DocumentsUI-a649f548711e4f1cb6ba86285fbd731ee3ba533c.tar.gz
platform_packages_apps_DocumentsUI-a649f548711e4f1cb6ba86285fbd731ee3ba533c.tar.bz2
platform_packages_apps_DocumentsUI-a649f548711e4f1cb6ba86285fbd731ee3ba533c.zip
Ensure user can only share documents from allowed users.
This is done by placing checking on various levels. - On the UI level, we check in the loader (DirectoryLoader/Recents Loader). - We also block querying document in DocumentsAccess - And we will not return the uris if we are not allowed to access the target user uri. Need to follow up on some issues: Breadcrumb bar disappeared in disabled user (because we cannot load root document and push to the stack) Cannot search if selected user is disabled (because of empty stack. We cannot restart loader in loadDocumentsForCurrentStack) Bug: 149818298 Bug: 148270816 Test: atest DocumentsUIGoogleTests Test: manual Change-Id: I000813d3e66a8c376dbfbd7e4085f403c2e5e0f6
Diffstat (limited to 'res/values')
-rw-r--r--res/values/strings.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml
index 7c719e644..18dc80b0a 100644
--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -201,6 +201,9 @@
<!-- Toast shown when user want to share files amount over limit [CHAR LIMIT=60] -->
<string name="toast_share_over_limit">Can\u2019t share more than <xliff:g id="count" example="1">%1$d</xliff:g> files</string>
+ <!-- Toast shown when a document is not allowed to share across users. This is a last-resort toast and not expected to be shown. [CHAR LIMIT=48] -->
+ <string name="toast_action_not_allowed">Action not allowed</string>
+
<!-- Title of dialog when prompting user to select an app to share documents with [CHAR LIMIT=32] -->
<string name="share_via">Share via</string>