Only retrieve the current user's permissions
Implement getDirectoryPermissions() in Shared Permissions, fixes #2846