Skip to content

Commit 9e6cdc5

Browse files
Merge pull request #9418 from Rakshitha-D/release-8.0.2-t1
Release 8.0.2 t1
2 parents 6530beb + cfa551b commit 9e6cdc5

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

src/app/client/src/app/modules/workspace/services/editors/editor.service.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,6 @@ export class EditorService {
4646
* @param req OBJECT
4747
*/
4848
create(req): Observable<ServerResponse> {
49-
const frameworkCategories = this.cslFrameworkService.getFrameworkCategoriesObject() as Array<any>;
50-
const categoryCodes = frameworkCategories.map((category) => category.code);
51-
categoryCodes.forEach((code) => {
52-
const categoryValue = _.get(req, `content.${code}`);
53-
if (categoryValue && !_.isArray(categoryValue)) {
54-
const category = [];
55-
category.push(categoryValue);
56-
req.content[code] = category;
57-
}
58-
});
5949

6050
const option = {
6151
url: this.configService.urlConFig.URLS.CONTENT.CREATE,

src/app/helpers/whitelistApis.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -983,13 +983,17 @@ const API_LIST = {
983983
'/action/dialcode/v3/search': {
984984
checksNeeded: ['ROLE_CHECK'],
985985
ROLE_CHECK: [
986-
ROLE.BOOK_CREATOR
986+
ROLE.BOOK_CREATOR,
987+
ROLE.COURSE_CREATOR,
988+
ROLE.CONTENT_CREATOR
987989
]
988990
},
989991
'/action/dialcode/v3/read/:dialId': {
990992
checksNeeded: ['ROLE_CHECK'],
991993
ROLE_CHECK: [
992-
ROLE.BOOK_CREATOR
994+
ROLE.BOOK_CREATOR,
995+
ROLE.COURSE_CREATOR,
996+
ROLE.CONTENT_CREATOR
993997
]
994998
},
995999
'/action/dialcode/v1/reserve/:do_id': {

0 commit comments

Comments
 (0)