[Koha-bugs] [Bug 8262] Special kohaadmin cannot create lists

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 7 21:07:25 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8262

--- Comment #10 from M. de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to Kyle M Hall from comment #9)
> Instead of having all this code in the perl scripts, wouldn't it be far
> simpler to to check C4::Context->userenv->{number} and display a warning
> that this account can't create a list? 
> 
> A TT plugin for userenv access could simplify this even more. I think a
> UserEnv sub that returned whatever $userenv->{$key} could easily be added to
> the Koha TT plugin.
> 
> In addition, the code assumes that any failure should generate this message,
> which may not always be the case. I'd say that's a qa blocker.

All this code is only a few lines (the AddShelf line is an improvement in any
case). But I would not oppose a warning in the template either.

A better message would be fine. The actual warning is now: List could not be
created (which is pretty generic :) Between brackets, a reminder Do not use
kohaadmin (which will be in this case btw a frequent cause).

No blockers for me. How do we get this further now?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list