[chora] Access rights

Jan Schneider jan at horde.org
Wed Nov 26 05:15:36 PST 2003


Zitat von Miroslav Šulc <miroslav.sulc at startnet.cz>:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Wednesday 26 of November 2003 13:54, Jan Schneider wrote:
> >
> > Put the module cvs root definitions in if-clauses checking the user
> name
> > with Auth::getAuth().
> >
> > Jan.
>
> Thank you for your fast help, but I don't understand what should I
> exactly do.
> Do you mean that I should create some if clause in
> chora/config/cvsroots.php
> for my cvsroot? What should I exactly do? Sorry for my questions but I am
> not
> as clever as you thought ;-)
>
> Here is my cvsroot defition:
>
> $cvsroots['StartNet'] = array(
>     'name' => 'StartNet',
>     'location' => '/home/cvsroot',
>     'title' => 'StartNet CVS Repository',
>     'cvsusers' => 'CVSROOT/cvsusers',
>     'default' => true
> );

Something like:

$user = Auth::getAuth();
if ($user == 'John' || $user == 'Doe') {
    $cvsroots['StartNet'] = array(
        'name' => 'StartNet',
        'location' => '/home/cvsroot',
        'title' => 'StartNet CVS Repository',
        'cvsusers' => 'CVSROOT/cvsusers',
        'default' => true
    );
}

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft


More information about the chora mailing list