test comment _workflow privilage validate
This commit is contained in:
parent
5b7bf01e9f
commit
44038e5497
1 changed files with 3 additions and 3 deletions
|
|
@ -30,9 +30,9 @@ export class ProfileAvatarController extends Controller {
|
|||
@Get("profileId/{id}")
|
||||
async getProfile(@Path() id: string, @Request() req: RequestWithUser) {
|
||||
try {
|
||||
let _workflow = await new permission().Workflow(req, id, "SYS_REGISTRY_OFFICER");
|
||||
if (_workflow == false)
|
||||
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", id);
|
||||
// let _workflow = await new permission().Workflow(req, id, "SYS_REGISTRY_OFFICER");
|
||||
// if (_workflow == false)
|
||||
await new permission().PermissionOrgUserGet(req, "SYS_REGISTRY_OFFICER", id);
|
||||
const profile = await this.profileRepository.findOne({
|
||||
where: { id },
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue