Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use accesslist from the new share manager #101

Closed
wants to merge 1 commit into from

Conversation

nickvergessen
Copy link
Member

@nickvergessen nickvergessen commented Jan 10, 2017

$accessList = $this->shareManager->getAccessList($node, true, true);
$helper = new ShareHelper($this->rootFolder); // FIXME

$nodes = $helper->getPathsForAccessList($node, $accessList['users']);
Copy link
Member Author

Choose a reason for hiding this comment

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

This sets up all the users and is therefor very slow :/
Also I wonder about a potential memory issue with nodes being loaded for all users

Copy link
Member

Choose a reason for hiding this comment

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

I don't think memory issues are the main concern here. Yes it is slow. But as discussed the old endpoint just returned false info in some cases.

Would it maybe make sense to just use the filename and link to the file by using not a path but the nodeid?

Signed-off-by: Joas Schilling <coding@schilljs.com>
@nickvergessen nickvergessen force-pushed the new-sharing-access-list branch from 66783c2 to 00d07c7 Compare March 27, 2017 16:20
@nickvergessen nickvergessen deleted the new-sharing-access-list branch March 28, 2017 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants