[rt-users] registration page

Bruce Campbell bruce_campbell at ripe.net
Mon Dec 2 17:33:04 EST 2002


On Mon, 2 Dec 2002, Forrest Stanley wrote:

> I managed to hack out a registration page this morning. Keep in mind that
> this is undertested code, and may contain errors. I suggest you do your own
> testing and modifications before you try any of this. Also, if anyone see's
> any glaring mistakes, please point them out to me :)
> -FS
>
> Here's what I did:
>
> /lib/RT/User.pm (around line 128)   <comment out ACL checks when creating a
> User (allow anyone to create user)>
>
>          #Check the ACL
>          #unless ($self->CurrentUserHasRight('AdminUsers')) {
>          #       return (0, 'No permission to create users');
>          # }

Aieeee - you don't want to do this (lots of repercussions if you change
ACL checks in User.pm).  Instead, try changing:

> my $user_obj = new RT::User($session{'CurrentUser'});

to:

> my $user_obj = new RT::User($RT::SystemUser);

Regards,

-- 
                             Bruce Campbell                            RIPE
                   Systems/Network Engineer                             NCC
                 www.ripe.net - PGP562C8B1B             Operations/Security




More information about the rt-users mailing list