Hello,
In "Your Account" page, near the end there is a "Your Administrative
Activities" tab.
If a user is just ie. a submitter (very common case), he sees: "Here
are some interesting web admin links for you:" with no info below.
Also even if the user has no special roles, he gets the following
link: "For more admin-level activities, see the complete Admin area".
You probably don't want each and every logged in user to see the Admin
docs :)
What I'm proposing is to change tmpl_account_adminactivities (in
websession_templates.py) to check if the user has sufficient rights
(which?) before showing the Admin link.
ie:
----
for role in roles:
if role=="superadmin":
out += "<br />" + _("For more admin-level activities,
see the complete %(x_url_open)sAdmin Area%(x_url_close)s.") %\
{'x_url_open': '<a href="' + CFG_SITE_URL +
'/help/admin?ln=' + ln + '">',
'x_url_close': '</a>'}
---
And you may want to do something similar to display "Here are some..."
_only_ if user has access to (at least one) of the specific actions
that you've chosen. The text is output near the line:
if activities:
out += _("Here are some interesting web admin links for you:")
# print proposed links:
activities.sort(lambda x, y: cmp(string.lower(x),
string.lower(y)))
[...]
The latter is only a cosmetic glitch and is of very low importance (in
my installation I completely removed the "Here are..." text)