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

Layer methods / missing permissions from server response #80

Open
francoisromain opened this issue Nov 23, 2017 · 2 comments
Open

Layer methods / missing permissions from server response #80

francoisromain opened this issue Nov 23, 2017 · 2 comments

Comments

@francoisromain
Copy link

francoisromain commented Nov 23, 2017

The response of method getLayers with a id_corpus parameter misses permissions:

  • in permissions.users: there is only the current user (even if has ADMIN permission on that layer and should see permissions for all users)
  • in permissions.groups: there are only the groups which the current user belongs (even if has ADMIN permission and should be able to see all groups permissions)
@hbredin
Copy link
Member

hbredin commented Nov 25, 2017

Let me rephrase what you think should happen:

  • if current user does not have ADMIN permission on the layer, getLayers should stick to the current behavior,
  • if current has ADMIN permission , it should also see permissions for all users and groups.

I think it is indeed a good idea.
Can you confirm my understanding is correct?

@francoisromain
Copy link
Author

Yes exactly. Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants