แก้ไขชื่อสิทธิ์
This commit is contained in:
parent
08ba1032dc
commit
e27e74559f
1 changed files with 14 additions and 7 deletions
|
|
@ -1530,7 +1530,8 @@ export class DevelopmentController extends Controller {
|
||||||
*/
|
*/
|
||||||
@Get("tab7/{id}")
|
@Get("tab7/{id}")
|
||||||
async GetDevelopemtTab7ById(@Request() request: RequestWithUser, @Path() id: string) {
|
async GetDevelopemtTab7ById(@Request() request: RequestWithUser, @Path() id: string) {
|
||||||
await new permission().PermissionGet(request, "SYS_DEV_SCHOLARSHIP");
|
// await new permission().PermissionGet(request, "SYS_DEV_SCHOLARSHIP");
|
||||||
|
await new permission().PermissionGet(request, "SYS_DEV_PROJECT");
|
||||||
const getDevelopment = await this.developmentRepository.findOne({
|
const getDevelopment = await this.developmentRepository.findOne({
|
||||||
where: { id },
|
where: { id },
|
||||||
});
|
});
|
||||||
|
|
@ -1555,7 +1556,8 @@ export class DevelopmentController extends Controller {
|
||||||
*/
|
*/
|
||||||
@Get("tab8/{id}")
|
@Get("tab8/{id}")
|
||||||
async GetDevelopemtTab8ById(@Request() request: RequestWithUser, @Path() id: string) {
|
async GetDevelopemtTab8ById(@Request() request: RequestWithUser, @Path() id: string) {
|
||||||
await new permission().PermissionGet(request, "SYS_DEV_SCHOLARSHIP");
|
// await new permission().PermissionGet(request, "SYS_DEV_SCHOLARSHIP");
|
||||||
|
await new permission().PermissionGet(request, "SYS_DEV_PROJECT");
|
||||||
const getDevelopment = await this.developmentRepository.findOne({
|
const getDevelopment = await this.developmentRepository.findOne({
|
||||||
relations: ["developmentRisks"],
|
relations: ["developmentRisks"],
|
||||||
where: { id: id },
|
where: { id: id },
|
||||||
|
|
@ -2003,7 +2005,8 @@ export class DevelopmentController extends Controller {
|
||||||
*/
|
*/
|
||||||
@Get("tab1/{id}")
|
@Get("tab1/{id}")
|
||||||
async GetDevelopemtTab1ById(@Request() request: RequestWithUser, @Path() id: string) {
|
async GetDevelopemtTab1ById(@Request() request: RequestWithUser, @Path() id: string) {
|
||||||
await new permission().PermissionGet(request, "SYS_DEV_SCHOLARSHIP");
|
// await new permission().PermissionGet(request, "SYS_DEV_SCHOLARSHIP");
|
||||||
|
await new permission().PermissionGet(request, "SYS_DEV_PROJECT");
|
||||||
const getDevelopment = await this.developmentRepository.findOne({
|
const getDevelopment = await this.developmentRepository.findOne({
|
||||||
where: { id: id },
|
where: { id: id },
|
||||||
});
|
});
|
||||||
|
|
@ -2056,7 +2059,8 @@ export class DevelopmentController extends Controller {
|
||||||
*/
|
*/
|
||||||
@Get("tab2/{id}")
|
@Get("tab2/{id}")
|
||||||
async GetDevelopemtTab2ById(@Request() request: RequestWithUser, @Path() id: string) {
|
async GetDevelopemtTab2ById(@Request() request: RequestWithUser, @Path() id: string) {
|
||||||
await new permission().PermissionGet(request, "SYS_DEV_SCHOLARSHIP");
|
// await new permission().PermissionGet(request, "SYS_DEV_SCHOLARSHIP");
|
||||||
|
await new permission().PermissionGet(request, "SYS_DEV_PROJECT");
|
||||||
const getDevelopment = await this.developmentRepository.findOne({
|
const getDevelopment = await this.developmentRepository.findOne({
|
||||||
where: { id: id },
|
where: { id: id },
|
||||||
relations: [
|
relations: [
|
||||||
|
|
@ -2151,7 +2155,8 @@ export class DevelopmentController extends Controller {
|
||||||
*/
|
*/
|
||||||
@Get("tab3/{id}")
|
@Get("tab3/{id}")
|
||||||
async GetDevelopemtTab3ById(@Request() request: RequestWithUser, @Path() id: string) {
|
async GetDevelopemtTab3ById(@Request() request: RequestWithUser, @Path() id: string) {
|
||||||
await new permission().PermissionGet(request, "SYS_DEV_SCHOLARSHIP");
|
// await new permission().PermissionGet(request, "SYS_DEV_SCHOLARSHIP");
|
||||||
|
await new permission().PermissionGet(request, "SYS_DEV_PROJECT");
|
||||||
const getDevelopment = await this.developmentRepository.findOne({
|
const getDevelopment = await this.developmentRepository.findOne({
|
||||||
where: { id: id },
|
where: { id: id },
|
||||||
relations: [
|
relations: [
|
||||||
|
|
@ -2260,7 +2265,8 @@ export class DevelopmentController extends Controller {
|
||||||
*/
|
*/
|
||||||
@Get("tab4/{id}")
|
@Get("tab4/{id}")
|
||||||
async GetDevelopemtTab4ById(@Request() request: RequestWithUser, @Path() id: string) {
|
async GetDevelopemtTab4ById(@Request() request: RequestWithUser, @Path() id: string) {
|
||||||
await new permission().PermissionGet(request, "SYS_DEV_SCHOLARSHIP");
|
// await new permission().PermissionGet(request, "SYS_DEV_SCHOLARSHIP");
|
||||||
|
await new permission().PermissionGet(request, "SYS_DEV_PROJECT");
|
||||||
const getDevelopment = await this.developmentRepository.findOne({
|
const getDevelopment = await this.developmentRepository.findOne({
|
||||||
where: { id: id },
|
where: { id: id },
|
||||||
relations: ["developmentEvaluations"],
|
relations: ["developmentEvaluations"],
|
||||||
|
|
@ -2293,7 +2299,8 @@ export class DevelopmentController extends Controller {
|
||||||
*/
|
*/
|
||||||
@Get("tab5/{id}")
|
@Get("tab5/{id}")
|
||||||
async GetDevelopemtTab5ById(@Request() request: RequestWithUser, @Path() id: string) {
|
async GetDevelopemtTab5ById(@Request() request: RequestWithUser, @Path() id: string) {
|
||||||
await new permission().PermissionGet(request, "SYS_DEV_SCHOLARSHIP");
|
// await new permission().PermissionGet(request, "SYS_DEV_SCHOLARSHIP");
|
||||||
|
await new permission().PermissionGet(request, "SYS_DEV_PROJECT");
|
||||||
const getDevelopment = await this.developmentRepository.findOne({
|
const getDevelopment = await this.developmentRepository.findOne({
|
||||||
relations: ["developmentOthers"],
|
relations: ["developmentOthers"],
|
||||||
where: { id: id },
|
where: { id: id },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue