Opened 6 years ago

Closed 5 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


+    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 5 years ago by jpschewe

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

comment:2 Changed 5 years ago by jodok

yes, just - sorry for omitting the patch header.

comment:3 Changed 5 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 5 years ago by anonymous

  • Type changed from enhancement to task

comment:5 Changed 5 years ago by eblot

  • Resolution set to fixed
  • Status changed from new to closed

(In [5686]) Fixes #3869. Thanks for the patch, jodok

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from eblot. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.