File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ def get_has_footer(self, obj):
129129 return not profile .is_pro_subscriber () and not profile .organization
130130
131131 def get_last_modified_by_email (self , obj ):
132- return obj .last_modified_by .email if obj .last_modified_by else None
132+ return obj .last_modified_by .email if obj .last_modified_by and obj . has_write_permission ( self . _request_user ) else None
133133
134134 def get_owner_email (self , obj ):
135135 return obj .owner .email if obj .has_write_permission (self ._request_user ) else None
@@ -140,7 +140,9 @@ def get_output_template(self, obj):
140140 def get_data (self , obj ):
141141 app_data = AppData .objects .filter (
142142 app_uuid = obj .uuid ).order_by ('-created_at' ).first ()
143- if app_data :
143+ if app_data and app_data .data :
144+ if not obj .has_write_permission (self ._request_user ):
145+ app_data .data .pop ('processors' , None )
144146 return app_data .data
145147 return None
146148
You can’t perform that action at this time.
0 commit comments