|
@@ -433,8 +433,9 @@ public class ThemeController extends BaseSearchController {
|
|
|
Map<String, String> excludeCondition;
|
|
|
|
|
|
if(searchConditionVO.getColumnFilters()==null){
|
|
|
- if(!roleLogic.isAdmin(userId))
|
|
|
+ if(!roleLogic.isAdmin(userId)) {
|
|
|
throw new HttpForbiddenException(String.format("Cannot list all courses, userId: %s", userId));
|
|
|
+ }
|
|
|
extraCondition = new HashMap<>();
|
|
|
excludeCondition = new HashMap<>();
|
|
|
} else{
|