Skip to content

Let the admin configure the default share permissions - #7363

Merged
MorrisJobke merged 7 commits into
masterfrom
default-share-perms
Feb 27, 2018
Merged

Let the admin configure the default share permissions#7363
MorrisJobke merged 7 commits into
masterfrom
default-share-perms

Conversation

@schiessle

@schiessleschiessle commented Dec 1, 2017

Copy link
Copy Markdown
Member

Let the admin configure the default share permissions

Possible look:

default-share2

or (currently implemented)

default-share1

@schiessle

schiessle commented Dec 1, 2017

Copy link
Copy Markdown
MemberAuthor

@jancborchardt please have a look at the two screenshots above. What do you prefer? Or something complete different? (It is about the "default share permissions")

@codecov

codecovBot commented Dec 1, 2017

Copy link
Copy Markdown

Codecov Report

Merging #7363 into master will increase coverage by <.01%.
The diff coverage is 71.11%.

@@ Coverage Diff @@## master #7363 +/- ##
============================================
+ Coverage 51.88% 51.89% +<.01% - Complexity 25394 25396 +2 
============================================
Files 1603 1603 Lines 95214 95249 +35 Branches 1379 1380 +1 ============================================
+ Hits 49403 49427 +24 - Misses 45811 45822 +11
Impacted FilesCoverage ΔComplexity Δ
lib/private/TemplateLayout.php0% <0%> (ø)48 <0> (ø)⬇️
core/Controller/OCJSController.php0% <0%> (ø)2 <0> (ø)⬇️
core/js/js.js66.11% <0%> (-0.15%)0 <0> (ø)
settings/templates/settings/admin/sharing.php0% <0%> (ø)0 <0> (ø)⬇️
lib/private/Template/JSConfigHelper.php0% <0%> (ø)17 <0> (ø)⬇️
core/js/shareitemmodel.js88.14% <100%> (+0.64%)0 <0> (ø)⬇️
lib/private/Settings/Manager.php65% <100%> (ø)42 <0> (ø)⬇️
apps/files_sharing/lib/Capabilities.php87.8% <100%> (+0.3%)5 <0> (ø)⬇️
...iles_sharing/lib/Controller/ShareAPIController.php68.34% <82.14%> (+0.65%)156 <0> (+1)⬆️
lib/private/Settings/Admin/Sharing.php84% <84.21%> (-8.86%)6 <2> (+1)
... and 3 more

@schiessle
schiessleforce-pushed the default-share-perms branch 5 times, most recently from 97db685 to c09d4d9CompareDecember 1, 2017 15:56
@schiessleschiessle added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Dec 1, 2017
@MorrisJobkeMorrisJobke mentioned this pull request Dec 9, 2017
28 tasks
@jancborchardt

Copy link
Copy Markdown
Member

Do we still want to stick to this complicated CRUD-mechanic? I thought at some point we only do two permissions:

  • Can edit
  • Can reshare

@schiessle

Copy link
Copy Markdown
MemberAuthor

Since Nextcloud 13 is out I think now it is the right time to pick this up, looking forward to your reviews

@MorrisJobke

Copy link
Copy Markdown
Member

Since Nextcloud 13 is out I think now it is the right time to pick this up, looking forward to your reviews

First of all: looking forward for your merge conflict fixes 😜 😉

@schiessle
schiessleforce-pushed the default-share-perms branch 2 times, most recently from 4fe6b04 to 50e9aabCompareFebruary 9, 2018 20:02
@schiessle

Copy link
Copy Markdown
MemberAuthor

@MorrisJobke done... now it is your turn 😉

@jancborchardt

Copy link
Copy Markdown
Member

What about my comment above? "Can edit", "Can reshare" should be the permissions, none other.

@schiessle

schiessle commented Feb 13, 2018

Copy link
Copy Markdown
MemberAuthor

What about my comment above? "Can edit", "Can reshare" should be the permissions, none other.

@jancborchardt I think it is a bit out of context. I'm completely open for simplifying the permissions. But this is one is just about making the default permissions configurable.

@schiessle

Copy link
Copy Markdown
MemberAuthor

waiting for a second review... Would be great to get this finally in before we have to rebase it again and again. Thanks!

@MorrisJobke

Copy link
Copy Markdown
Member

@rullzer@nickvergessen@skjnldsv Review would be nice :)

schiessleand others added 7 commits February 27, 2018 12:29
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
@rullzer

Copy link
Copy Markdown
Member

I rebased to make sure it all still works. Fails somehow. I'll look into the why....

@rullzer

Copy link
Copy Markdown
Member

Ah was just cached stuff. Works like a charm.

@rullzerrullzer added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Feb 27, 2018
@MorrisJobke
MorrisJobke merged commit 7bc3c2e into masterFeb 27, 2018
@MorrisJobke
MorrisJobke deleted the default-share-perms branch February 27, 2018 12:44
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 finishfeature: sharing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@schiessle@jancborchardt@MorrisJobke@rullzer