Skip to Content.
Sympa Menu

en - Re: [sympa-users] Creating New Roles

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: David Verdin <address@concealed>
  • To: Graham Pearson <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [sympa-users] Creating New Roles
  • Date: Fri, 19 Dec 2008 09:11:40 +0100

Hi,

You will need to modify the list_admin_menu.tt2 template to do this. At the end of this file, you will note that the section dedicated to admin test, for subscription moderation only, that a user is owner (line 12 in the following excerpt):

[% IF is_owner || is_editor %]
<span id="list_admin_menu">[%|loc%]Moderate[%END%]</span><br />

<ul class="menuLinks">
[% IF is_editor %]
[% IF action == 'modindex' %][% SET class = 'menuLinksCurrentPage' %][% ELSE %][% SET class = 'menuLinks' %][% END %]

<li><a class="[% class %]" href="[% path_cgi %]/modindex/[% list %]">[%|loc%]Message[%END%] ([% mod_message %]) </a></li>
<li><a class="[% class %]" href="[% path_cgi %]/modindex/[% list %]">[%|loc%]Document[%END%] ([% mod_total_shared %])</a></li>
[% END %]
[% IF is_owner %]
[% IF action == 'subindex' %][% SET class = 'menuLinksCurrentPage' %][% ELSE %][% SET class = 'menuLinks' %][% END %]

<li><a class="[% class %]" href="[% path_cgi %]/subindex/[% list %]">[%|loc%]Subscriptions[%END%] ([% mod_subscription %])</a></li>

[% END %]
</ul>
[% END %]

As you basically want to give editors the same rights as owners for the moderation of the list, you can just delete the subtests ([% IF is_editor %] and [% IF is_owner %]).

That would lead to something like:

[% IF is_owner || is_editor %]
<span id="list_admin_menu">[%|loc%]Moderate[%END%]</span><br />

<ul class="menuLinks">
[% IF action == 'modindex' %][% SET class = 'menuLinksCurrentPage' %][% ELSE %][% SET class = 'menuLinks' %][% END %]
<li><a class="[% class %]" href="[% path_cgi %]/modindex/[% list %]">[%|loc%]Message[%END%] ([% mod_message %]) </a></li>
<li><a class="[% class %]" href="[% path_cgi %]/modindex/[% list %]">[%|loc%]Document[%END%] ([% mod_total_shared %])</a></li>
[% IF action == 'subindex' %][% SET class = 'menuLinksCurrentPage' %][% ELSE %][% SET class = 'menuLinks' %][% END %]
<li><a class="[% class %]" href="[% path_cgi %]/subindex/[% list %]">[%|loc%]Subscriptions[%END%] ([% mod_subscription %])</a></li>
</ul>
[% END %]

Al lthe informations regarding web tempaltes administration can be found here:

https://www.sympa.org/manual/customizing#web_template_files

Please note that a full section of the admin page in the Sympa web interface is dedicated to template editing. Just click the "Skins administration page" link.

Regards,

Graham Pearson a écrit :
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Group:

I have a need to give a Moderator the ability to Manage Subscribers
without giving them Administrative Rights to the list. In K-12
Education, I have learned that if a link is on a page, someone will
click it and mess with things that they have no idea what they do. Right
now I go in and do the Manage Subscribers for all of the mailing lists,
but have had a request from a Moderator to manage their own subscribers.

I know that this is possible some how some way, just do not know the
best way to get to the end result that I am looking for.


- --
Graham Pearson, System Administrator / Application Developer
Northern Indiana Educational Services Center
Voice (866) 254-5322 or (574) 254-5210 / Fax (574) 254-0148
Polycom H.323 is 216.23.241.18

Have Tax Questions:
http://taxprofinder.hrblock.com/taxpros.aspx?taxproid=484903
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJSqkFakuGrBT7wfkRAotrAJ42Hpb5Ir4C56LHXcwzpMjEPv0wmQCgq272
1aoBqhPBa9ukxrt+0cmbipE=
=KUyr
-----END PGP SIGNATURE-----

--
David Verdin
Comité réseau des universités




Archive powered by MHonArc 2.6.19+.

Top of Page