feat(plugin): gate pages on companion features
This commit is contained in:
@@ -312,9 +312,10 @@ type GamePluginPage struct {
|
||||
Key string
|
||||
Title string
|
||||
Path string
|
||||
Bundle PluginPageBundle
|
||||
Bundle PluginPageBundle
|
||||
Permissions []string
|
||||
BridgeActions []string
|
||||
FeatureKeys []string
|
||||
}
|
||||
|
||||
// PluginPageBundle identifies an installed plugin-owned page module. The host
|
||||
@@ -1806,6 +1807,7 @@ func CopyGamePluginPageSlice(pages []GamePluginPage) []GamePluginPage {
|
||||
out[i] = page
|
||||
out[i].Permissions = CopyStringSlice(page.Permissions)
|
||||
out[i].BridgeActions = CopyStringSlice(page.BridgeActions)
|
||||
out[i].FeatureKeys = CopyStringSlice(page.FeatureKeys)
|
||||
}
|
||||
return out
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user