Skip to content

Commit a74f493

Browse files
committed
Revert PR #1767
1 parent bdcbee6 commit a74f493

File tree

1 file changed

+0
-5
lines changed
  • src/bika/lims/browser/analyses

1 file changed

+0
-5
lines changed

src/bika/lims/browser/analyses/view.py

-5
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
from DateTime import DateTime
5656
from plone.memoize import view as viewcache
5757
from Products.Archetypes.config import REFERENCE_CATALOG
58-
from Products.CMFCore.permissions import ModifyPortalContent
5958
from Products.CMFPlone.utils import safe_unicode
6059
from senaite.app.listing import ListingView
6160
from zope.component import getAdapters
@@ -298,10 +297,6 @@ def is_analysis_edition_allowed(self, analysis_brain):
298297
# inside a deactivated Analysis Request, for instance
299298
return False
300299

301-
if not self.has_permission(ModifyPortalContent, obj=self.context):
302-
# skip any further checks if the sample can not be modified
303-
return False
304-
305300
analysis_obj = self.get_object(analysis_brain)
306301
if analysis_obj.getPointOfCapture() == 'field':
307302
# This analysis must be captured on field, during sampling.

0 commit comments

Comments
 (0)