summaryrefslogtreecommitdiff
path: root/lib/VNWeb/ULists/Lib.pm
blob: d831692a35973cbddf09238c60d94681588b60fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package VNWeb::ULists::Lib;

use VNWeb::Prelude;
use Exporter 'import';

our @EXPORT = qw/ulists_own/;

# Do we have "ownership" access to this users' list (i.e. can we edit and see private stuff)?
sub ulists_own {
    auth->permUsermod || (auth && auth->uid == shift)
}

1;