MCPcopy
hub / github.com/gotify/server / isPluginOwner

Function isPluginOwner

api/plugin.go:406–408  ·  view source on GitHub ↗
(ctx *gin.Context, conf *model.PluginConf)

Source from the content-addressed store, hash-verified

404}
405
406func isPluginOwner(ctx *gin.Context, conf *model.PluginConf) bool {
407 return conf.UserID == auth.GetUserID(ctx)
408}
409
410func supportOrAbort(ctx *gin.Context, instance compat.PluginInstance, module compat.Capability) (aborted bool) {
411 if compat.HasSupport(instance, module) {

Callers 5

EnablePluginMethod · 0.85
DisablePluginMethod · 0.85
GetDisplayMethod · 0.85
GetConfigMethod · 0.85
UpdateConfigMethod · 0.85

Calls 1

GetUserIDFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…