mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
feat: remove app name and logo customization feature
Users can no longer customize the app name or logo. The branding API endpoints, permission, frontend UI, env vars (APP_NAME, MAX_LOGO_SIZE_KB), and all related tests are removed. Includes a migration to clean up branding data from existing databases.
This commit is contained in:
@@ -19,9 +19,9 @@ import { getPermissions, hasPermission } from "../../../apps/api/src/permissions
|
||||
|
||||
describe("permissions", () => {
|
||||
describe("getPermissions", () => {
|
||||
it("returns all 15 permissions for admin", () => {
|
||||
it("returns all 14 permissions for admin", () => {
|
||||
const perms = getPermissions("admin");
|
||||
expect(perms).toHaveLength(15);
|
||||
expect(perms).toHaveLength(14);
|
||||
expect(perms).toContain("tools:use");
|
||||
expect(perms).toContain("files:own");
|
||||
expect(perms).toContain("files:all");
|
||||
@@ -33,7 +33,6 @@ describe("permissions", () => {
|
||||
expect(perms).toContain("settings:write");
|
||||
expect(perms).toContain("users:manage");
|
||||
expect(perms).toContain("teams:manage");
|
||||
expect(perms).toContain("branding:manage");
|
||||
expect(perms).toContain("features:manage");
|
||||
expect(perms).toContain("system:health");
|
||||
expect(perms).toContain("audit:read");
|
||||
@@ -58,7 +57,6 @@ describe("permissions", () => {
|
||||
expect(perms).not.toContain("settings:write");
|
||||
expect(perms).not.toContain("users:manage");
|
||||
expect(perms).not.toContain("teams:manage");
|
||||
expect(perms).not.toContain("branding:manage");
|
||||
});
|
||||
|
||||
it("returns empty array for unknown role", () => {
|
||||
|
||||
Reference in New Issue
Block a user