Issue Details (XML | Word | Printable)

Key: PYFB-57
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Pavel Cisar
Reporter: Cagatay Tengiz
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Firebird driver for Python

role.privileges does not return correct privilege list

Created: 12/Aug/15 09:11 PM   Updated: 30/Aug/15 03:40 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.4.10


 Description  « Hide
In schema.py line 3050 :

    def _get_privileges(self):
        return [p for p in self.schema.privileges
                if ((p.subject_name == self.name) and
                    (p.subject_type in self._type_code))]

but I think it should be :

    def _get_privileges(self):
        return [p for p in self.schema.privileges
                if ((p.user_name == self.name) and
                    (p.user_type in self._type_code))]


 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.