Currently they only check the current user, but plugins might well need to check for other users as well.
Do you mean TWiki::Func::isAdmin? Because in the core, these are methods on a user object.
CC
while i don't really want to puritanical
I guess you mean you'd like to call
TWiki::User::isAdmin(nameOfUser)
rather than
my $user = TWiki::User::Finduser(nameOfUser);
$user->isAdmin();
now something in me thinks this is not necessarily worth it - the execution cost will be the same, and as a programatical short cut, i'm not sure it will be tyed often enough.
aren't we glad this is only my opinion?
-- SD
No, I want to call
TWiki::FuncUsersContrib::isAdmin($user)
from a plugin. Currently it doesn't take an argument and only checks for the current user.
ML