Re: Access rights

Jan Schneider <[email protected]>
Newsgroups gmane.comp.horde.chora
Message-ID <[email protected]>
Zitat von Miroslav Šulc <[email protected]>:

> -----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

-- 
Chora mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.