[dev] Kronolith patches for Categories and Permissions
Jason Rust
jrust at rustyparts.com
Tue May 6 19:09:23 PDT 2003
This first patch is so that Category Management is not shown to a guest
user which would allow them to add category entries to the database:
Index: prefs.php.dist
===================================================================
RCS file: /repository/kronolith/config/prefs.php.dist,v
retrieving revision 1.40
diff -r1.40 prefs.php.dist
51,55c51,57
< $prefGroups['category_management'] = array(
< 'column' => _("Other Options"),
< 'label' => _("Category Management"),
< 'desc' => _("Add, remove, and edit categories."),
< 'members' => array('category_management'));
---
> if (Auth::getAuth()) {
> $prefGroups['category_management'] = array(
> 'column' => _("Other Options"),
> 'label' => _("Category Management"),
> 'desc' => _("Add, remove, and edit categories."),
> 'members' => array('category_management'));
> }
This second patch fixes the javascript for creating the permissions
button that shows up next to the Calendar Type. There was never a type
2 in any version of the CVS so it looks to be a holdover from the
initial commit of the code. So this patch makes it so a button with Permissions
shows up next to shared calendars, but no button shows up next to private
calendars.
Index: templates/calendars/javascript.inc
===================================================================
RCS file: /repository/kronolith/templates/calendars/javascript.inc,v
retrieving revision 1.11
diff -r1.11 javascript.inc
36,39c36
< document.shares.accesslist.value = '<?php echo _("Members List") ?>';
< document.shares.accesslist.style.visibility = 'visible';
< } else if (type == 2) {
< document.shares.accesslist.value = '<?php echo _("Permission") ?>';
---
> document.shares.accesslist.value = '<?php echo _("Permissions") ?>';
-Jason
--
http://www.rustyparts.com/
guaranteed never to rust!
More information about the dev
mailing list