mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-07-27 04:19:31 +08:00
新增资源和分类左侧菜单权限
This commit is contained in:
parent
e8c08f9c09
commit
700da4c468
@ -44,6 +44,8 @@ public class BPermissionConstant {
|
|||||||
public static final String COURSE_USER_DESTROY = "course-user-destroy";
|
public static final String COURSE_USER_DESTROY = "course-user-destroy";
|
||||||
|
|
||||||
public static final String RESOURCE_CATEGORY = "resource-category";
|
public static final String RESOURCE_CATEGORY = "resource-category";
|
||||||
|
public static final String RESOURCE_CATEGORY_MENU = "resource-category-menu";
|
||||||
|
public static final String RESOURCE_MENU = "resource-menu";
|
||||||
|
|
||||||
public static final String SYSTEM_CONFIG = "system-config";
|
public static final String SYSTEM_CONFIG = "system-config";
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ public class AdminPermissionCheck implements CommandLineRunner {
|
|||||||
});
|
});
|
||||||
// 资源分类
|
// 资源分类
|
||||||
put(
|
put(
|
||||||
"资源分类",
|
"分类管理",
|
||||||
new AdminPermission[] {
|
new AdminPermission[] {
|
||||||
new AdminPermission() {
|
new AdminPermission() {
|
||||||
{
|
{
|
||||||
@ -116,6 +116,27 @@ public class AdminPermissionCheck implements CommandLineRunner {
|
|||||||
.RESOURCE_CATEGORY);
|
.RESOURCE_CATEGORY);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
new AdminPermission() {
|
||||||
|
{
|
||||||
|
setSort(10);
|
||||||
|
setName("左侧菜单");
|
||||||
|
setSlug(
|
||||||
|
BPermissionConstant
|
||||||
|
.RESOURCE_CATEGORY_MENU);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
});
|
||||||
|
// 资源分类
|
||||||
|
put(
|
||||||
|
"资源管理",
|
||||||
|
new AdminPermission[] {
|
||||||
|
new AdminPermission() {
|
||||||
|
{
|
||||||
|
setSort(10);
|
||||||
|
setName("左侧菜单");
|
||||||
|
setSlug(BPermissionConstant.RESOURCE_MENU);
|
||||||
|
}
|
||||||
|
},
|
||||||
});
|
});
|
||||||
// 学员
|
// 学员
|
||||||
put(
|
put(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user