1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-19 05:09:42 +02:00

Add edit check to atatchments list view

This commit is contained in:
HarveyKandola 2019-10-14 17:29:34 +01:00
parent ef5b5cdb32
commit 7c70274f5e
3 changed files with 1061 additions and 1058 deletions

View file

@ -42,7 +42,7 @@ func main() {
rt.Product.Major = "3"
rt.Product.Minor = "3"
rt.Product.Patch = "2"
rt.Product.Revision = "191014113417"
rt.Product.Revision = "191014171946"
rt.Product.Version = fmt.Sprintf("%s.%s.%s", rt.Product.Major, rt.Product.Minor, rt.Product.Patch)
rt.Product.Edition = domain.CommunityEdition
rt.Product.Title = fmt.Sprintf("%s Edition", rt.Product.Edition)

File diff suppressed because one or more lines are too long

View file

@ -62,6 +62,9 @@ export default Component.extend(Modals, Notifier, {
let uploadUrl = `${url}/documents/${documentId}/attachments`;
// Handle upload clicks on button and anything inside that button.
// But only if user can edit this document.
if (!this.get('canEdit')) return;
let sel = ['#upload-document-files ', '#upload-document-files > i'];
for (var i=0; i < 2; i++) {
let dzone = new Dropzone(sel[i], {