-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix permissions are not getting initialized
- Loading branch information
Showing
11 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
Pano/src/main/kotlin/com/panomc/platform/annotation/Permission.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.panomc.platform.annotation | ||
|
||
import org.springframework.stereotype.Component | ||
|
||
@Target(AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.CLASS) | ||
@Retention(AnnotationRetention.RUNTIME) | ||
@Component | ||
annotation class Permission( | ||
val value: String = "" | ||
) |
2 changes: 2 additions & 0 deletions
2
...src/main/kotlin/com/panomc/platform/auth/panel/permission/AccessActivityLogsPermission.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package com.panomc.platform.auth.panel.permission | ||
|
||
import com.panomc.platform.annotation.Permission | ||
import com.panomc.platform.auth.PanelPermission | ||
|
||
@Permission | ||
class AccessActivityLogsPermission : PanelPermission("fa-rectangle-list") |
2 changes: 2 additions & 0 deletions
2
Pano/src/main/kotlin/com/panomc/platform/auth/panel/permission/AccessPanelPermission.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package com.panomc.platform.auth.panel.permission | ||
|
||
import com.panomc.platform.annotation.Permission | ||
import com.panomc.platform.auth.PanelPermission | ||
|
||
@Permission | ||
class AccessPanelPermission : PanelPermission("fa-cubes") |
2 changes: 2 additions & 0 deletions
2
Pano/src/main/kotlin/com/panomc/platform/auth/panel/permission/ManageAddonsPermission.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package com.panomc.platform.auth.panel.permission | ||
|
||
import com.panomc.platform.annotation.Permission | ||
import com.panomc.platform.auth.PanelPermission | ||
|
||
@Permission | ||
class ManageAddonsPermission : PanelPermission("fa-puzzle-piece") |
2 changes: 2 additions & 0 deletions
2
...main/kotlin/com/panomc/platform/auth/panel/permission/ManagePermissionGroupsPermission.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package com.panomc.platform.auth.panel.permission | ||
|
||
import com.panomc.platform.annotation.Permission | ||
import com.panomc.platform.auth.PanelPermission | ||
|
||
@Permission | ||
class ManagePermissionGroupsPermission : PanelPermission("fa-lock-open") |
2 changes: 2 additions & 0 deletions
2
...main/kotlin/com/panomc/platform/auth/panel/permission/ManagePlatformSettingsPermission.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package com.panomc.platform.auth.panel.permission | ||
|
||
import com.panomc.platform.annotation.Permission | ||
import com.panomc.platform.auth.PanelPermission | ||
|
||
@Permission | ||
class ManagePlatformSettingsPermission : PanelPermission("fa-cog") |
2 changes: 2 additions & 0 deletions
2
Pano/src/main/kotlin/com/panomc/platform/auth/panel/permission/ManagePlayersPermission.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package com.panomc.platform.auth.panel.permission | ||
|
||
import com.panomc.platform.annotation.Permission | ||
import com.panomc.platform.auth.PanelPermission | ||
|
||
@Permission | ||
class ManagePlayersPermission : PanelPermission("fa-users") |
2 changes: 2 additions & 0 deletions
2
Pano/src/main/kotlin/com/panomc/platform/auth/panel/permission/ManagePostsPermission.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package com.panomc.platform.auth.panel.permission | ||
|
||
import com.panomc.platform.annotation.Permission | ||
import com.panomc.platform.auth.PanelPermission | ||
|
||
@Permission | ||
class ManagePostsPermission : PanelPermission("fa-sticky-note") |
2 changes: 2 additions & 0 deletions
2
Pano/src/main/kotlin/com/panomc/platform/auth/panel/permission/ManageServersPermission.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package com.panomc.platform.auth.panel.permission | ||
|
||
import com.panomc.platform.annotation.Permission | ||
import com.panomc.platform.auth.PanelPermission | ||
|
||
@Permission | ||
class ManageServersPermission : PanelPermission("fa-cubes") |
2 changes: 2 additions & 0 deletions
2
Pano/src/main/kotlin/com/panomc/platform/auth/panel/permission/ManageTicketsPermission.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package com.panomc.platform.auth.panel.permission | ||
|
||
import com.panomc.platform.annotation.Permission | ||
import com.panomc.platform.auth.PanelPermission | ||
|
||
@Permission | ||
class ManageTicketsPermission : PanelPermission("fa-ticket-alt") |
2 changes: 2 additions & 0 deletions
2
Pano/src/main/kotlin/com/panomc/platform/auth/panel/permission/ManageViewPermission.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package com.panomc.platform.auth.panel.permission | ||
|
||
import com.panomc.platform.annotation.Permission | ||
import com.panomc.platform.auth.PanelPermission | ||
|
||
@Permission | ||
class ManageViewPermission : PanelPermission("fa-palette") |