Session->Privilege is not design well to work in embedded applications

like the RTE because by default it uses the default user style from settings.
This renders a full page, when we really need a message.

I've added an argument to session->privilege->insufficient to use the
empty style and to use a different message with no embedded macros
to process for logging in.  I tested this on the RTE folder adder and
it works fine.  I duplicated this work in the Image add/edit save routine
as well.

Since privilege->insuffient didn't take arguments before, this preserves
the existing API, which is broken.
This commit is contained in:
Colin Kuskie 2007-01-26 05:45:56 +00:00
parent ae2c99beb5
commit 0eba64bc52
4 changed files with 17 additions and 4 deletions

View file

@ -3288,6 +3288,11 @@ that Asset and all Assets below it.</p>
lastUpdated => 1031514049
},
'bare insufficient' => {
message => q|You do not have sufficient privileges to perform this operation. Please log in with an account that has sufficient privileges before attempting this operation.|,
lastUpdated => 1169790230
},
'164' => {
message => q|Authentication Method|,
lastUpdated => 1031514049