Changes between Version 3 and Version 4 of Ticket #31093


Ignore:
Timestamp:
Dec 15, 2019, 8:36:20 AM (5 years ago)
Author:
James Pic
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31093 – Description

    v3 v4  
    1515            return False
    1616   
    17         return (   
    18             user_obj.profile == 'admin'   
    19             or obj.related_model_fk in user_obj.related_model_m2m.all()   
    20         )
     17        return user_obj.is_superuser or obj.related_model_fk in user_obj.related_model_m2m.all()   
    2118}}}
    2219
Back to Top