Files
studio/cmd/admin_user.go
ozan 87952aecef
Build & Deploy Platform / build (push) Waiting to run
feat: platform admin role + branding templates
Platform admin:
- IsPlatformAdmin field on user model (DB migration v331)
- CLI: gitea admin user set-platform-admin, --platform-admin flag on create
- Token scope: read:platform / write:platform
- API + web routes restricted to platform admins
- Only @tinqs.com emails can be platform admins

Branding:
- brand_mark.tmpl, head_icons.tmpl templates
- ARCHITECTURE.md monorepo overview
2026-05-22 19:27:26 +01:00

25 lines
503 B
Go

// Copyright 2023 The Gitea Authors. All rights reserved.
// SPDX-License-Identifier: MIT
package cmd
import (
"github.com/urfave/cli/v3"
)
func newUserCommand() *cli.Command {
return &cli.Command{
Name: "user",
Usage: "Modify users",
Commands: []*cli.Command{
microcmdUserCreate(),
newUserListCommand(),
microcmdUserChangePassword(),
microcmdUserDelete(),
newUserGenerateAccessTokenCommand(),
microcmdUserMustChangePassword(),
microcmdUserSetPlatformAdmin(),
},
}
}