| | 692 | sub core_set_superuser { |
| | 693 | # TODO |
| | 694 | # my $self = shift; |
| | 695 | # |
| | 696 | # local $SuperUser = $opt{SuperUser} || ''; |
| | 697 | # |
| | 698 | # my $app = $App; |
| | 699 | # my $author; |
| | 700 | # if ((ref $app) && ($app->{author})) { |
| | 701 | # require MT::Author; |
| | 702 | # $self->progress($self->translate_escape("Setting your permissions to administrator.")); |
| | 703 | # $author = MT::Author->load($app->{author}->id); |
| | 704 | # } elsif ($SuperUser) { |
| | 705 | # require MT::Author; |
| | 706 | # $self->progress($self->translate_escape("Setting your permissions to administrator.")); |
| | 707 | # $author = MT::Author->load($SuperUser); |
| | 708 | # } |
| | 709 | # |
| | 710 | # if ($author) { |
| | 711 | # $author->is_superuser(1); |
| | 712 | # $author->save or return $self->error($self->translate_escape("Error saving record: [_1].", $author->errstr)); |
| | 713 | # } |
| | 714 | # |
| | 715 | 1; |
| | 716 | } |
| | 717 | |