[kronolith] Calendar Perms with Frombackend/tobackend hook

Bill Graham grahamcw at hurleybulldogs.com
Tue Mar 4 20:03:33 UTC 2008


I think the template was not consistently  unhooking the $user when  
individual users had permissions.

I have attached a pach ( I hope).

Bill


-- 
Bill Graham
Systems Administrator
Hurley Public Schools
Hurley,SD 57036
USA
http://www.hurleybulldogs.com
grahamcw at hurleybulldogs.com




----------------------------------------------------------------
This electronic  mail sent from Hurley Public Schools -
Hurley, South Dakota http://www.hurleybulldogs.com

NOTICE: This E-mail (including attachments) is confidential and may be  
legally privileged. If you are not the intended recipient, you are  
hereby notified that any retention, dissemination, distribution, or  
copying of this communication is strictly prohibited. Please reply to  
the sender that you have received the message in error, then delete  
it. Thank you.

-------------- next part --------------
--- /root/newhorde/kronolith/templates/perms/perms.inc	2007-11-23 10:46:38.000000000 -0600
+++ perms.inc	2008-03-04 13:40:01.000000000 -0600
@@ -214,8 +214,9 @@
   <td class="header"></td>
 </tr>
 <?php foreach ($userperms as $user => $uperm) { if ($user != $owner) { ?>
+<?php $user=htmlspecialchars(Auth::removeHook($user)) ?>
 <tr>
-  <td class="light"><?php echo htmlspecialchars(Auth::removeHook($user)) ?><input type="hidden" name="u_names[<?php echo htmlspecialchars($user) ?>]" value="<?php echo htmlspecialchars($user) ?>" /></td>
+  <td class="light"><?php echo htmlspecialchars($user) ?><input type="hidden" name="u_names[<?php echo htmlspecialchars($user) ?>]" value="<?php echo htmlspecialchars($user) ?>" /></td>
   <td align="center">
     <input type="checkbox" id="u_show_<?php echo str_replace('@', '_', htmlspecialchars($user)) ?>" name="u_show[<?php echo htmlspecialchars($user) ?>]"<?php echo ($uperm & PERMS_SHOW) ? ' checked="checked"' : '' ?> />
     <label for="u_show_<?php echo str_replace('@', '_', htmlspecialchars($user)) ?>" class="hidden"><?php echo _("Show") ?></label>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-keys
Size: 1375 bytes
Desc: PGP Public Key
Url : http://lists.horde.org/archives/kronolith/attachments/20080304/2d4fce95/attachment.bin 


More information about the kronolith mailing list