Fix https://github.com/matthieugrieger/mumbledj/issues/155: Admin settings not being respected
This commit is contained in:
parent
1731047317
commit
b24417deda
|
@ -1,6 +1,9 @@
|
|||
MumbleDJ Changelog
|
||||
==================
|
||||
|
||||
### June 25, 2016 -- `v3.0.5`
|
||||
* Fixed admin settings not being respected.
|
||||
|
||||
### June 25, 2016 -- `v3.0.4`
|
||||
* Fixed a crash on `!forceskip`.
|
||||
|
||||
|
|
|
@ -268,7 +268,7 @@ func (dj *MumbleDJ) findCommand(message string) (interfaces.Command, error) {
|
|||
|
||||
func (dj *MumbleDJ) executeCommand(user *gumble.User, message string, command interfaces.Command) (string, bool, error) {
|
||||
canExecute := false
|
||||
if viper.GetBool("permissions.enabled") && command.IsAdminCommand() {
|
||||
if viper.GetBool("admins.enabled") && command.IsAdminCommand() {
|
||||
canExecute = dj.IsAdmin(user)
|
||||
} else {
|
||||
canExecute = true
|
||||
|
|
Reference in a new issue