docs: add Chinese RBAC guide and link with shared space docs
Replace the English docs/rbac.md with a comprehensive Chinese docs/RBAC说明.md and a wiki-style summary under docs/wiki/安全认证/. Explain how tenant RBAC relates to the shared space feature (they are orthogonal: tenant RBAC is the vertical defense, shared space is the horizontal collaboration channel) and cross-link the two docs in both the flat and wiki trees. Update inbound references in .env.example, docker-compose.yml, and the auth legacy env test to point at the new file name.
This commit is contained in:
@@ -7,7 +7,7 @@ import "testing"
|
||||
// DISABLE_REGISTRATION=true would block /auth/register at the handler layer
|
||||
// but leave /auth/config reporting self_serve, so the frontend would keep
|
||||
// showing the (broken) Register entry. Coercing registration_mode here keeps
|
||||
// both gates in sync, and matches the docs/rbac.md "env always wins over
|
||||
// both gates in sync, and matches the docs/RBAC说明.md "env always wins over
|
||||
// YAML" rule.
|
||||
func TestApplyAuthAndTenantDefaults_DisableRegistrationDrivesRegistrationMode(t *testing.T) {
|
||||
cases := []struct {
|
||||
|
||||
Reference in New Issue
Block a user