Skip to content

Conversation

@rullzer
Copy link
Member

@rullzer rullzer commented May 6, 2020

Follow up to #20726

Turns out we do need the permission in the DB. Else the federated code still chokes as it doesn't use the API.

Also updated the tests to reflect the new situation.

@rullzer rullzer added this to the Nextcloud 19 milestone May 6, 2020
@rullzer rullzer mentioned this pull request May 6, 2020
3 tasks
@rullzer rullzer modified the milestones: Nextcloud 19, Nextcloud 20 May 6, 2020
@rullzer
Copy link
Member Author

rullzer commented May 6, 2020

/backport to stable19

}

// TODO: It might make sense to have a dedicated setting to allow/deny converting link shares into federated ones
if (($permissions & Constants::PERMISSION_READ)$this->shareManager->outgoingServer2ServerSharesAllowed()) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@skjnldsv
Copy link
Member

skjnldsv commented May 6, 2020

It still doesn't change the issue about the front end then.
What does the federation uses then? If not the api?

@skjnldsv
Copy link
Member

skjnldsv commented May 6, 2020

It still doesn't change the issue about the front end then.

Ah, actually it might 🤔

@rullzer
Copy link
Member Author

rullzer commented May 6, 2020

It still doesn't change the issue about the front end then.

Ah, actually it might thinking

Not really. But the feeration part that we use instally to check this uses the ShareManager. Basically this fix is not pretty. But it makes the state consistent. The hack for the frontend stays in place for now. It is not ideal I know.

@MorrisJobke
Copy link
Member

Failing tests 🙈

rullzer and others added 3 commits May 15, 2020 08:18
@juliusknorr
Copy link
Member

Rebased and pushed a fix for the failing test as well.

@juliusknorr juliusknorr added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels May 18, 2020
@MorrisJobke MorrisJobke merged commit ca276a9 into master May 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release Ready to be released and/or waiting for tests to finish bug feature: sharing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants