Changeset 836


Ignore:
Timestamp:
Aug 10, 2006, 6:05:11 PM (15 years ago)
Author:
nick
Message:

Allow the option of moderating nodes without the password

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Changes

    r828 r836  
    44        Admin interface
    55        Nodes missing metadata interface
     6        Moderation support (based on Wiki::Toolkit moderation)
    67
    780.56    14 June 2006
  • trunk/lib/OpenGuides.pm

    r834 r836  
    12731273
    12741274    my $password = $args{password};
     1275    unless($self->config->moderation_requires_password) {
     1276        $password = $self->config->admin_pass;
     1277    }
    12751278
    12761279    if ($password) {
  • trunk/lib/OpenGuides/Config.pm

    r776 r836  
    1313   custom_template_path geo_handler ellipsoid gmaps_api_key centre_long
    1414   centre_lat default_gmaps_zoom default_gmaps_search_zoom force_wgs84
    15    licence_name licence_url licence_info_url
     15   licence_name licence_url licence_info_url moderation_requires_password
    1616);
    1717my @questions = map { $_ . "__qu" } @variables;
  • trunk/templates/moderate_confirm.tt

    r829 r836  
    1313[% IF moderation_action == 'set_moderation' %]
    1414  You are about to change the moderation flag on
    15   <span class="node_name">[% node_name %]</span>.
    1615[% ELSE %]
    1716  You are about to moderate a version of
    18   <span class="node_name">[% node_name %]</span>.
    19   completely erase this page and all its history.
    2017[% END %]
     18<span class="node_name">[% node_name %]</span>.
    2119To do so, please enter the admin password. If not, you can
    2220<a href="[% cgi_url %]?action=admin">go back to the admin page</a>.
Note: See TracChangeset for help on using the changeset viewer.