Update of /cvs/scoop/scoop/lib/Scoop/Comments
In directory lithium.sabren.com:/tmp/cvs-serv4270/lib/Scoop/Comments
Modified Files:
Format.pm
Log Message:
Move story posting form into blocks. Also moves the part of the poll form where it makes sense into blocks, since it's part of story
posting. Adds an "edit_own_stories" perm that you can enable for users if you want them to be able to edit their own stuff after posting.
And finally changes admin tools semantics to allow multiple perms per admin tool. The admin tools box right now only respects the first
perm listed when it makes the tools list, to preserve the traditional behavior of that box. In the long run, this will need to be
fixed. Also, it may be advantageous eventually to add an "edit" perm category to sections, to enable editing of some sections but not
others.
--rusty
Index: Format.pm
===================================================================
RCS file: /cvs/scoop/scoop/lib/Scoop/Comments/Format.pm,v
retrieving revision 1.56
retrieving revision 1.57
diff -C2 -d -r1.56 -r1.57
*** Format.pm 27 Jan 2005 22:40:03 -0000 1.56
--- Format.pm 3 Feb 2005 15:48:30 -0000 1.57
***************
*** 447,451 ****
if ($S->_does_poll_exist($sid) && $S->have_perm('edit_polls')) {
$story_info_txt .= qq|\| <A CLASS="light" HREF="%%rootdir%%/admin/editpoll/$sid">Edit Poll</A>|;
! } elsif (!$S->_does_poll_exist($sid) && $S->have_perm('story_list')) {
$story_info_txt .= qq|\| <A CLASS="light" HREF="%%rootdir%%/admin/story/$sid">Edit Story</A>|;
}
--- 447,451 ----
if ($S->_does_poll_exist($sid) && $S->have_perm('edit_polls')) {
$story_info_txt .= qq|\| <A CLASS="light" HREF="%%rootdir%%/admin/editpoll/$sid">Edit Poll</A>|;
! } elsif (!$S->_does_poll_exist($sid) && $S->check_edit_story_perms($sid)) {
$story_info_txt .= qq|\| <A CLASS="light" HREF="%%rootdir%%/admin/story/$sid">Edit Story</A>|;
}