Skip to content

Properly load permissions in showActions - #15992

Merged
skjnldsv merged 1 commit into
masterfrom
bugfix/noid/showActions-permission
Jul 7, 2019
Merged

Properly load permissions in showActions#15992
skjnldsv merged 1 commit into
masterfrom
bugfix/noid/showActions-permission

Conversation

@juliusknorr

@juliusknorrjuliusknorr commented Jun 18, 2019

Copy link
Copy Markdown
Member

When setViewerMode(false) is called, the permissions should be fetched from the available dirInfo, otherwise creating a file is not possible.

Fixes#16238

Steps to reproduce:

  • Open a pdf file
  • Close the pdf file
  • Check for the create a new file button

@juliusknorr

Copy link
Copy Markdown
MemberAuthor

/backport to stable16

@juliusknorr

Copy link
Copy Markdown
MemberAuthor

/backport to stable15

@skjnldsvskjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jun 19, 2019
@skjnldsv

Copy link
Copy Markdown
Member

Jsunit fails

--------------3193|undefined3194|TypeError: undefinedisnotanobject(evaluating'fileList.setFiles')inapps/files/tests/js/filelistSpec.js(line3460)3195|apps/files/tests/js/filelistSpec.js:3460:123196|TypeError: undefinedisnotanobject(evaluating'fileList.showFileBusyState')inapps/files/tests/js/filelistSpec.js(line3464)3197|apps/files/tests/js/filelistSpec.js:3464:123198|TypeError: undefinedisnotanobject(evaluating'notificationStub.restore')inapps/files/tests/js/filelistSpec.js(line187)3199|apps/files/tests/js/filelistSpec.js:187:193200|PhantomJS2.1.1(Linux0.0.0)OCA.Files.FileListtestsshowFileBusyStateacceptsmultipleinputformatsFAILED3201|TypeError: Attemptedtowrapredirectwhichisalreadywrappedinbuild/lib/node_modules/sinon/pkg/sinon.js(line3901)3202|undefined3203

@skjnldsvskjnldsv added 2. developing Work in progress and removed 4. to release Ready to be released and/or waiting for tests to finish labels Jun 19, 2019
When setViewerMode(false) is called, the permissions should be fetched from the available dirInfo
Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliusknorr
juliusknorrforce-pushed the bugfix/noid/showActions-permission branch from 75091b2 to 51683faCompareJuly 5, 2019 10:21
@juliusknorr

Copy link
Copy Markdown
MemberAuthor

Ok, jsunit tests should be fine now.

@juliusknorrjuliusknorr added 3. to review Waiting for reviews high and removed 2. developing Work in progress labels Jul 5, 2019
@skjnldsv
skjnldsv merged commit 2f86fd6 into masterJul 7, 2019
@delete-merged-branch
delete-merged-branchBot deleted the bugfix/noid/showActions-permission branch July 7, 2019 18:20
@skjnldsvskjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jul 7, 2019
@backportbot-nextcloud

Copy link
Copy Markdown

backport to stable16 in #16282

@backportbot-nextcloud

Copy link
Copy Markdown

backport to stable15 in #16283

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishbugfeature: fileshigh

Projects

None yet

Development

Successfully merging this pull request may close these issues.

You don’t have permission to upload or create files here

3 participants

@juliusknorr@skjnldsv@ChristophWurst