Unverified Commit 86249acb authored by KASSEM Passam's avatar KASSEM Passam Committed by GitHub
Browse files

[VAS] Bug 8240 : Access file format on multi tenants organisation (#481)



Co-authored-by: default avatarPassam KASSEM <passam.kassem@focati-solutions.com>
parent 93d48b94
db = db.getSiblingDB("iam");
print("START_40_update_application_file_format_app_ref_to_be_multi_tenant.js");
// =============== REFERENTIAL : FILE_FORMATS_APP ==========
db.applications.update(
{
identifier: "FILE_FORMATS_APP",
},
{
$set: {
hasTenantList: true,
},
}
);
print("END_40_update_application_file_format_app_ref_to_be_multi_tenant.js");
......@@ -34,27 +34,31 @@
* The fact that you are presently reading this means that you have had
* knowledge of the CeCILL-C license and that you accept its terms.
*/
import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {Route, RouterModule} from '@angular/router';
import {AppGuard, AuthGuard} from 'ui-frontend-common';
import {FileFormatComponent} from './file-format.component';
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { Route, RouterModule } from '@angular/router';
import { ActiveTenantGuard, TenantSelectionGuard, VitamUITenantSelectComponent } from 'ui-frontend-common';
import { FileFormatComponent } from './file-format.component';
const routes: Route[] = [
{
path: '',
redirectTo: 'tenant',
pathMatch: 'full',
},
{
path: 'tenant',
component: VitamUITenantSelectComponent,
canActivate: [TenantSelectionGuard],
},
{
path: 'tenant/:tenantIdentifier',
component: FileFormatComponent,
canActivate: [AuthGuard, AppGuard],
data: {appId: 'FILE_FORMATS_APP'}
}
canActivate: [ActiveTenantGuard],
},
];
@NgModule({
imports: [
CommonModule,
RouterModule.forChild(routes),
]
imports: [CommonModule, RouterModule.forChild(routes)],
})
export class FileFormatRoutingModule {
}
export class FileFormatRoutingModule {}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment