20 lines
572 B
Go
20 lines
572 B
Go
package seo
|
|
|
|
import (
|
|
"git.golem15.com/golem15/sm-seo-plugin/controllers"
|
|
"git.golem15.com/golem15/summercms/modules/pact"
|
|
)
|
|
|
|
// Permissions declares the one SEO permission, golem15.seo.manage (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)
|