feat: URL rules and the settings singleton
This commit is contained in:
19
admin_permissions.go
Normal file
19
admin_permissions.go
Normal 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)
|
||||
Reference in New Issue
Block a user