@@ -111,7 +111,6 @@ class ConsentBackend {
111111 required String kind,
112112 required List <String > args,
113113 required AuditLogRecord auditLogRecord,
114- required bool createdBySiteAdmin,
115114 }) async {
116115 return retry (() async {
117116 // First check for existing consents with identical dedupId.
@@ -143,7 +142,7 @@ class ConsentBackend {
143142 email: email,
144143 kind: kind,
145144 args: args,
146- createdBySiteAdmin: createdBySiteAdmin ,
145+ createdBySiteAdmin: activeAgent is SupportAgent ,
147146 );
148147 await _db.commit (inserts: [
149148 consent,
@@ -159,7 +158,6 @@ class ConsentBackend {
159158 required User activeUser,
160159 required String packageName,
161160 required String uploaderEmail,
162- bool createdBySiteAdmin = false ,
163161 }) async {
164162 return await _invite (
165163 activeAgent: agent,
@@ -172,7 +170,6 @@ class ConsentBackend {
172170 package: packageName,
173171 uploaderEmail: uploaderEmail,
174172 ),
175- createdBySiteAdmin: createdBySiteAdmin,
176173 );
177174 }
178175
@@ -191,7 +188,6 @@ class ConsentBackend {
191188 args: [publisherId, contactEmail],
192189 auditLogRecord: await AuditLogRecord .publisherContactInvited (
193190 user: user, publisherId: publisherId, contactEmail: contactEmail),
194- createdBySiteAdmin: false ,
195191 );
196192 }
197193
@@ -201,7 +197,6 @@ class ConsentBackend {
201197 required User activeUser,
202198 required String publisherId,
203199 required String invitedUserEmail,
204- bool createdBySiteAdmin = false ,
205200 }) async {
206201 return await _invite (
207202 activeAgent: authenticatedAgent,
@@ -214,7 +209,6 @@ class ConsentBackend {
214209 publisherId: publisherId,
215210 memberEmail: invitedUserEmail,
216211 ),
217- createdBySiteAdmin: createdBySiteAdmin,
218212 );
219213 }
220214
0 commit comments