 defmodule Serverboards.Plugin.RPC do
   alias MOM.RPC
   alias Serverboards.Plugin
+
+  TODO get the plugin definition (if id is a plugin) and the user_perms to be checked too
 
   def has_perm_for_plugin(context, plugin) do
     perms = RPC.Context.get(context, :user).perms


    {:ok, method_caller}
  end
end


    RPC.MethodCaller.add_method method_caller, "plugin.call", fn
      [id, method, params] ->
        call_plugin(context, id, method, params)
      [id, method] ->
        call_plugin(context, id, method, [])
    end, [context: true]

    RPC.MethodCaller.add_method method_caller, "plugin.is_running", fn
      [id], context ->
