fix user download report error
This commit is contained in:
parent
ed537aa72f
commit
f938541733
1 changed files with 2 additions and 2 deletions
|
|
@ -109,7 +109,7 @@ export class ProfileController extends Controller {
|
||||||
*/
|
*/
|
||||||
@Get("kp7-short/{id}")
|
@Get("kp7-short/{id}")
|
||||||
async kp7ShortById(@Path() id: string, @Request() req: RequestWithUser) {
|
async kp7ShortById(@Path() id: string, @Request() req: RequestWithUser) {
|
||||||
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", id);
|
// await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", id);
|
||||||
const orgRevision = await this.orgRevisionRepo.findOne({
|
const orgRevision = await this.orgRevisionRepo.findOne({
|
||||||
where: { orgRevisionIsCurrent: true },
|
where: { orgRevisionIsCurrent: true },
|
||||||
});
|
});
|
||||||
|
|
@ -266,7 +266,7 @@ export class ProfileController extends Controller {
|
||||||
*/
|
*/
|
||||||
@Get("kk1/{id}")
|
@Get("kk1/{id}")
|
||||||
public async getKk1(@Path() id: string, @Request() req: RequestWithUser) {
|
public async getKk1(@Path() id: string, @Request() req: RequestWithUser) {
|
||||||
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", id);
|
// await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", id);
|
||||||
const profiles = await this.profileRepo.findOne({
|
const profiles = await this.profileRepo.findOne({
|
||||||
// select: [
|
// select: [
|
||||||
// "citizenId",
|
// "citizenId",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue