Skip to content

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?

@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.

3 participants