Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

role.privileges does not return correct privilege list [PYFB57] #74

Closed
firebird-automations opened this issue Aug 13, 2015 · 1 comment

Comments

@firebird-automations
Copy link

Submitted by: Cagatay Tengiz (ctengiz)

In http://schema.py line 3050 :

def \_get\_privileges\(self\):
    return \[p for p in self\.schema\.privileges
            if \(\(p\.subject\_name == <http://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 == <http://self.name>\) and
                \(p\.user\_type in self\.\_type\_code\)\)\]

Commits: 2565503 1c79dcd FirebirdSQL/fbt-repository@a046d95 FirebirdSQL/fbt-repository@dbea24e

@firebird-automations
Copy link
Author

Modified by: @pcisar

status: Open [ 1 ] => Closed [ 6 ]

resolution: Fixed [ 1 ]

Fix Version: 1.4.10 [ 10710 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants