pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / servers / pufferpanel / disable-group-checks.patch
bloba3f0aa074b6038b5cbe129bcdea21eb028a28b8e
1 diff --git a/cmd/main.go b/cmd/main.go
2 index f9af7038..099ff2e2 100644
3 --- a/cmd/main.go
4 +++ b/cmd/main.go
5 @@ -24,11 +24,6 @@ import (
8 func main() {
9 - if !pufferpanel.UserInGroup("pufferpanel") {
10 - fmt.Println("You do not have permission to use this command")
11 - return
12 - }
14 defer logging.Close()
16 defer func() {
17 diff --git a/cmd/user.go b/cmd/user.go
18 index d4a27aaf..9bf21910 100644
19 --- a/cmd/user.go
20 +++ b/cmd/user.go
21 @@ -218,10 +218,9 @@ type userCreate struct {
24 func editUser(cmd *cobra.Command, args []string) {
25 - if !pufferpanel.UserInGroup() {
26 - fmt.Printf("You do not have permission to use this command")
27 - return
28 - }
29 + // Keeping import to avoid merge conflicts with future updates in case
30 + // PufferPanel starts using this import elsewhere in this file.
31 + _ = pufferpanel.UserInGroup
33 db, err := database.GetConnection()
34 if err != nil {