jeffersonheard / ga_bigboard

The Big Board - teleconferencing over maps
Other
7 stars 2 forks source link

Overlays for users with multiple roles #19

Closed NathanRSmith closed 12 years ago

NathanRSmith commented 12 years ago

When there is a user with multiple roles in a room attempting to share an overlay that is available to two or more of the roles to which the user belongs it fails to create the shared overlay saying:

MultipleObjectsReturned: More than 'Overlay' matched 'pk=2'.

Doing an api request on an overlay object gives this error:

More than one resource is found at this URI.

And fetching them all has multiple copies for each overlay that meets the above criteria.

The issue is somewhat related to issue #16 and is caused by line 30 inside ReadOnlyMyRoleAutorization in api.py. The filter is causing duplicates to appear.