diff --git a/lib/PostText.pm b/lib/PostText.pm index 758df99..3edf1df 100644 --- a/lib/PostText.pm +++ b/lib/PostText.pm @@ -210,11 +210,11 @@ sub startup($self) { # lock() is a builtin so use _acct suffix $mod_admin->any([qw{GET POST}], '/lock') ->to('moderator#lock_acct') - ->name('lock_acct'); + ->name('lock_mod'); $mod_admin->any([qw{GET POST}], '/unlock') ->to('moderator#unlock_acct') - ->name('unlock_acct'); + ->name('unlock_mod'); $mod_admin->any([qw{GET POST}], '/promote') ->to('moderator#promote') diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index bdee722..57bdf0e 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -28,8 +28,8 @@ Admin: <%= link_to Create => 'create_mod' %> <%= link_to Reset => 'admin_reset' %> - <%= link_to Lock => 'lock_acct' %> - <%= link_to Unlock => 'unlock_acct' %> + <%= link_to Lock => 'lock_mod' %> + <%= link_to Unlock => 'unlock_mod' %> <%= link_to Promote => 'promote_mod' %> <%= link_to Demote => 'demote_admin' %> <% } =%>