Modify ↓
Opened 5 years ago
Closed 4 years ago
#3869 closed task (fixed)
patch to make it work with 0.11
| Reported by: | jodok | Owned by: | eblot |
|---|---|---|---|
| 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 4 years ago by jpschewe
comment:2 Changed 4 years ago by jodok
yes, just api.py - sorry for omitting the patch header.
comment:3 Changed 4 years ago by anonymous
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 4 years ago by anonymous
- Type changed from enhancement to task
comment:5 Changed 4 years ago by eblot
- Resolution set to fixed
- Status changed from new to closed
Note: See
TracTickets for help on using
tickets.


Where does this need to go for it to work? Just into api.py anywhere?