- definitions singleton controller (theme default, first or create) with a repeater on data: type dropdown (url plus registry types), reference dependsOn type through signpost.ReferenceOptions - Settings page entries: Sitemap (link to the controller) and Sitemap settings (form), both behind golem15.sitemap.access_definitions - en and pl phrasebooks with the PHP keys - README with the PHP parity rules, tiers, hooks, commands and the Winter YAML adaptations - TestSitemapAdminSmoke: singleton, PHP-keyed rows, 422 on a foreign reference, settings save, 403 without the permission
20 lines
606 B
Go
20 lines
606 B
Go
package sitemap
|
|
|
|
import (
|
|
"git.golem15.com/golem15/sm-sitemap-plugin/controllers"
|
|
"git.golem15.com/golem15/summercms/modules/pact"
|
|
)
|
|
|
|
// Permissions is the plugin's Winter registerPermissions() catalog: the PHP
|
|
// code golem15.sitemap.access_definitions on the developer role.
|
|
func (*Plugin) Permissions() []pact.Permission {
|
|
return []pact.Permission{{
|
|
Code: controllers.PermissionAccessDefinitions,
|
|
Tab: "golem15.sitemap::lang.plugin.name",
|
|
Label: "golem15.sitemap::lang.plugin.permissions.access_definitions",
|
|
Roles: []string{"developer"},
|
|
}}
|
|
}
|
|
|
|
var _ pact.HasPermissions = (*Plugin)(nil)
|