Parent Directory | Revision Log | Patch
revision 21 by dpavlin, Thu May 4 15:12:03 2006 UTC | revision 22 by dpavlin, Fri May 26 18:35:08 2006 UTC | |
---|---|---|
# | Line 23 sub available_values { | Line 23 sub available_values { |
23 | return $self->column("name")->valid_values; | return $self->column("name")->valid_values; |
24 | } | } |
25 | ||
26 | =head2 current_user_can ACTION | |
27 | ||
28 | Let everybody create, read and update, but not delete. | |
29 | ||
30 | =cut | |
31 | ||
32 | sub current_user_can { | |
33 | my $self = shift; | |
34 | my $type = shift; | |
35 | ||
36 | # We probably want something like this eventually: | |
37 | if ($type =~ /(?:create|read|update)/i) { | |
38 | return 1; | |
39 | } else { | |
40 | return $self->SUPER::current_user_can($type, @_); | |
41 | } | |
42 | } | |
43 | ||
44 | 1; | 1; |
45 |
|
ViewVC Help | |
Powered by ViewVC 1.1.26 |