HasInstance returns whether the given plugin ID has a corresponding instance.
(pluginID uint)
| 176 | |
| 177 | // HasInstance returns whether the given plugin ID has a corresponding instance. |
| 178 | func (m *Manager) HasInstance(pluginID uint) bool { |
| 179 | instance, err := m.Instance(pluginID) |
| 180 | return err == nil && instance != nil |
| 181 | } |
| 182 | |
| 183 | // RemoveUser disabled all plugins of a user when the user is disabled. |
| 184 | func (m *Manager) RemoveUser(userID uint) error { |