quait / madcow

Automatically exported from code.google.com/p/madcow
GNU General Public License v3.0
0 stars 0 forks source link

Permissions for Set Location|Email #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I tried doing this myself to no avail.

How would you go about checking if the user setting the location|email
attrib is originating from that user.

Id like to only allow them to set location|email for only their own nick.

Original issue reported on code.google.com by chris2...@gmail.com on 11 Jan 2010 at 10:19

GoogleCodeExporter commented 9 years ago
In modules/learn.py, add something like this to the response function before
self.set() is called:

    if nick != key:
        return u'You don't have permission to do that'

Original comment by cjo...@gmail.com on 20 Jan 2010 at 4:50

GoogleCodeExporter commented 9 years ago
excellent! worked perfectly

Original comment by chris2...@gmail.com on 22 Jan 2010 at 3:40

GoogleCodeExporter commented 9 years ago

Original comment by cjo...@gmail.com on 20 Jun 2010 at 8:46