Pavel Titov (titov_en) wrote in fotobilder,
Pavel Titov
titov_en
fotobilder

Default doc/fbconfig.pl.txt:
    # USER CAPABILITIES CLASSES:
    # default capability class mask for new users: 
    # (16 bit unsigned int ... each bit is capability class flag)
    $NEWUSER_CAPS = 0;

But create_user checks another variable:
    $ref->{'caps'}      ||= $FB::DEFAULT_CAPS+0;

Is at a typo in fbconfig.pl.txt or I am doing something wrong?

And another question, how to hook up my own auth module? I see a
sub new_domain_plugin
{
    my ($dmid, $class, $args) = @_;
    return undef unless $class =~ /^\w+$/;
    my $rv = eval "use FotoBilder::Auth::$class;";
    if ($@) {
        print STDERR "Error loading auth module '$class': $@\n";
        return undef;
    }
    my $mod = "FotoBilder::Auth::$class";
    return $mod->new($dmid, $args);
}
in fotobilder.pl but don't have a clue how to pass $class variable here.

Update: I'm really dumb. http://www.livejournal.com/community/fotobilder/48777.html#cutid1
Subscribe

  • 302: lj_dev

    In the interests of consolidating all FotoBilder development-related discussion, we're going to be closing down this community. The same…

  • Development stalled?

    Is the development of Fotobilder held? Stalled? I am asking because there is no activity on the community and there is no link to the Fotobilder…

  • (no subject)

    Does FotoBilder works with Apache2? I installed all the required modules on my debian sarge, and when I restart my apache server, it dies horribly…

  • Post a new comment

    Error

    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic
  • 2 comments