#1836 closed defect (fixed)
USE permission on a bioplate is not enough to actually use it for biomaterial
Reported by: | Nicklas Nordborg | Owned by: | everyone |
---|---|---|---|
Priority: | minor | Milestone: | BASE 3.3.1 |
Component: | core | Version: | |
Keywords: | Cc: |
Description
Create a bioplate and share it to another user with USE permission. When logged in as that user, try to add biomaterial to the plate (for example via the plate template on the view-page).
The page will show "You are not allowed to add biomaterial to this well".
Trying to add biomaterial from the "Wells" tab opens a popup window but it only displays "Permission denied: Not allowed to write Biowell[id=xxx]"
The workaround is to give the user WRITE permission to the bioplate.
Change History (3)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [6524]) Fixes #1836: USE permission on a bioplate is not enough to actually use it for biomaterial
Added ChildItem.getPermissionForUse()
so that USE permission on parent can be transfered to the child item.
Fixed permission checking in biowells list and edit page so that it actually works if a user has USE permission.
Hmmm... seems to be a generic flaw for all items with a parent-child relationship.
What is missing in the above "implementation" is the case when the user has USE permission on the parent. This currently translates to READ permission on the child item but it should by default translate to USE permission also on the child.
That said, there also seems to be a flaw in the bioplate gui. The view page is correct in that it only checks if the user has USE permission, but the actual popup dialog checks for WRITE permission. The biowells list page is also not correct since it doesn't check the USE/WRITE permission at all.