V1 Importer work
This commit is contained in:
@ -46,7 +46,7 @@ const internalRedirectionHost = {
|
||||
})
|
||||
.then(() => {
|
||||
// At this point the domains should have been checked
|
||||
data.owner_user_id = access.token.get('attrs').id;
|
||||
data.owner_user_id = access.token.getUserId(1);
|
||||
|
||||
return redirectionHostModel
|
||||
.query()
|
||||
@ -219,7 +219,7 @@ const internalRedirectionHost = {
|
||||
.first();
|
||||
|
||||
if (access_data.permission_visibility !== 'all') {
|
||||
query.andWhere('owner_user_id', access.token.get('attrs').id);
|
||||
query.andWhere('owner_user_id', access.token.getUserId(1));
|
||||
}
|
||||
|
||||
// Custom omissions
|
||||
@ -307,7 +307,7 @@ const internalRedirectionHost = {
|
||||
.orderBy('domain_names', 'ASC');
|
||||
|
||||
if (access_data.permission_visibility !== 'all') {
|
||||
query.andWhere('owner_user_id', access.token.get('attrs').id);
|
||||
query.andWhere('owner_user_id', access.token.getUserId(1));
|
||||
}
|
||||
|
||||
// Query is used for searching
|
||||
|
Reference in New Issue
Block a user