Re: mailgw woes

"John P. Rouillard" <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.user
Message-ID <[email protected]>
Hi All:

Sorry, I haven't been following this in detail.

 In message <[email protected]>,
Ralf Schlatterbeck writes:
>On Tue, Apr 20, 2021 at 10:31:04PM +0000, Tom Ekberg wrote:
>> I've gotten back to this problem and have been working hard to try to
>> get the auto-user-register to work. I did as you suggested and
>> cut/pasted the code (import sys...) which ran OK. Then I cut/pasted
>> from schema.py and your print line:
>> 
>> >>> db.security.addPermissionToRole('Anonymous', 'Register', 'user')
>> >>> print (db.security.hasPermission('Register', anonid, 'user'))
>> 0
>> 
>> It's almost like it ignores "Register".
>
>> What I'm going to do is copy mailgw.py and change the test for the
>> 'Register' by commenting that part of the if test out. This
>[commenting out the check for Register makes it work]
>
>
>Hmm, I have no idea what is happening there. And I don't think we have
>changed that particular part of the permission infrastructure recently.
>in
>That said: I do not use user registration and possibly many others don't
>either. But I think we *do* have registration turned on in roundup's own
>tracker.
>
>Has anyone else an idea what is going on there?

What does:

 roundup_admin -i tracker_dir security

show? You should see:

  Role "Anonymous":

     ...
     User is allowed to register new user (Register for "user" only)
     ...
 
and there should not be any other Register roles.

--
				-- rouilj
John Rouillard
===========================================================================
My employers don't acknowledge my existence much less my opinions.
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.