feat: URL rules and the settings singleton

This commit is contained in:
2026-10-27 10:34:39 +01:00
parent fb9590f099
commit ce60c8a1ee
20 changed files with 1412 additions and 0 deletions

19
admin_permissions.go Normal file
View File

@@ -0,0 +1,19 @@
package seo
import (
"git.golem15.com/golem15/sm-seo-plugin/controllers"
"git.golem15.com/golem15/summercms/modules/pact"
)
// Permissions declares the one SEO permission (D-15): the SEO tab of every
// content type, URL rules, the settings and history, in the admin and
// through MCP.
func (*Plugin) Permissions() []pact.Permission {
return []pact.Permission{{
Code: controllers.PermissionManage,
Tab: "golem15.seo::lang.permissions.tab",
Label: "golem15.seo::lang.permissions.manage",
}}
}
var _ pact.HasPermissions = (*Plugin)(nil)