File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed
client/src/app/modules/workspace/services/editors Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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' : {
You can’t perform that action at this time.
0 commit comments