]> ruin.nu Git - ndwebbie.git/blobdiff - lib/NDWeb.pm
Fix sms sending permission
[ndwebbie.git] / lib / NDWeb.pm
index 63708aaa847df6a96dc7afbad1983d8ab373b5cb..81e8dee4b5ac0f02d1fd5fc218ec15aaba044e3d 100644 (file)
@@ -18,7 +18,6 @@ use Catalyst qw/
        -Debug
        ConfigLoader
        Static::Simple
-       Unicode::Encoding
 
        Authentication
        Authentication::Store::NDWeb
@@ -89,6 +88,8 @@ __PACKAGE__->config( encoding => 'UTF-8');
 __PACKAGE__->setup();
 
 __PACKAGE__->deny_access_unless('/users',[qw/admin_users/]);
+__PACKAGE__->allow_access_if('/users/sms',[qw/users_sms/]);
+__PACKAGE__->allow_access_if('/users/postsms',[qw/users_sms/]);
 __PACKAGE__->deny_access_unless('/alliances',[qw/alliances/]);
 __PACKAGE__->deny_access_unless('/alliances/resources',[qw/alliances_resources/]);
 __PACKAGE__->deny_access_unless('/graphs/alliancevsintel',[qw/graphs_intel/]);