Changeset 316
- Timestamp:
- 01/16/11 19:09:27 (13 years ago)
- Location:
- server/trunk/web
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
server/trunk/web/lib/Sophie/Controller/Admin.pm
r296 r316 17 17 18 18 =cut 19 20 sub begin : Private { 21 my ($self, $c) = @_; 22 23 if (!($c->user_exists && $c->check_user_roles($c->user, 'Admin'))) { 24 $c->go('/login/index'); 25 } 26 27 $c->forward('/begin'); 28 } 19 29 20 30 =head2 index -
server/trunk/web/lib/Sophie/Controller/Admin/Maintenance.pm
r280 r316 16 16 17 17 =cut 18 19 sub begin : Private { 20 my ($self, $c) = @_; 21 22 if ($c->req->address eq '127.0.0.1' || $c->req->address eq '::1') { 23 } else { 24 $c->forward('/admin/begin') 25 } 26 27 $c->forward('/begin'); 28 } 29 30 sub tasks : XMLRPC { 31 my ($self, $c) = @_; 32 33 $c->stash->{xmlrpc} = [ qw( 34 admin.maintenance.delete_expired_sessions 35 ) ]; 36 } 18 37 19 38 sub delete_expired_sessions :XMLRPC { -
server/trunk/web/lib/Sophie/Controller/Root.pm
r274 r316 50 50 exists($c->req->params ->{ajax})) { 51 51 $c->stash->{current_view} = 'Ajax'; 52 }53 54 if ($c->action =~ m/^admin\//) {55 if (!($c->user_exists && $c->check_user_roles($c->user, 'Admin'))) {56 $c->go('/login/index');57 }58 52 } 59 53
Note: See TracChangeset
for help on using the changeset viewer.