diff options
Diffstat (limited to 'web')
-rw-r--r-- | web/context.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/web/context.go b/web/context.go index 5eb8c94d5..3b2ffa17c 100644 --- a/web/context.go +++ b/web/context.go @@ -14,6 +14,7 @@ import ( "github.com/mattermost/mattermost-server/app" "github.com/mattermost/mattermost-server/mlog" "github.com/mattermost/mattermost-server/model" + "github.com/mattermost/mattermost-server/plugin" "github.com/mattermost/mattermost-server/utils" ) @@ -526,3 +527,11 @@ func (c *Context) RequireRoleName() *Context { return c } + +func (c *Context) ToPluginContext() *plugin.Context { + return &plugin.Context{ + //sessionId: c.Session.Id, + //requestId: c.RequestId, + //userIp: c.IpAddress, + } +} |