Deck: Rest API: assigned users without read permissions

Created on 3 Oct 2019  路  7Comments  路  Source: nextcloud/deck

Describe the bug
A friend of mine has an account on my nextcloud instance. I made a board for him and shared it with him. Now my friend creates a board (using Deck Android app, therefore the Rest-API) and assigns a card to me.
-> I get a notification via NC Files app
-> I still can't see the board, neither the card.

Is this working as designed?


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

1. to develop bug api

Most helpful comment

All 7 comments

As discussed you should not be able to assign users to a card which are not part of the board. How do you get the list of users in the android app for assigning to the card?

Select * from users where accountId = ? -> no acl check, not depending on boards. We plan to include ACL as well, but shouldn't the server validate the rest call? I mean... You know...

BTW: The users in the DB are all users I know about for a specific account.

Just looked it up. The users are either owners of boards, or the user behind the account, or already assigned to at least one card on any board of the account

The GET /boards - Get a list of boards endpoint should return a list of users per board that can be assigned to the card. However I'll look into limiting the assignment on the server side as well.

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Dubidubiduu picture Dubidubiduu  路  3Comments

armaccloud picture armaccloud  路  3Comments

langfingaz picture langfingaz  路  3Comments

ampoz picture ampoz  路  4Comments

ghost picture ghost  路  3Comments