Modify ↓
Opened 16 years ago
Closed 16 years ago
#3869 closed task (fixed)
patch to make it work with 0.11
Reported by: | Jodok Batlogg | Owned by: | Emmanuel Blot |
---|---|---|---|
Priority: | normal | Component: | LdapPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
+ def get_users_with_permissions(self, permissions): + users = set([u[0] for u in self.env.get_known_users()]) + result = set() + for user in users: + userperms = self.get_user_permissions(user) + for group in permissions: + if group in userperms: + result.add(user) + return list(result) +
Attachments (0)
Change History (5)
comment:1 Changed 16 years ago by
comment:3 Changed 16 years ago by
Which class does it belong in? I'd like to test this on my setup as well and see if it solves my problem.
comment:4 Changed 16 years ago by
Type: | enhancement → task |
---|
comment:5 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Where does this need to go for it to work? Just into api.py anywhere?