Ticket #3869 (closed task: fixed)

Opened 5 years ago

Last modified 4 years ago

patch to make it work with 0.11

Reported by: jodok Assigned to: 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

Change History

04/15/09 03:53:25 changed by jpschewe

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

04/15/09 07:22:34 changed by jodok

yes, just api.py - sorry for omitting the patch header.

04/15/09 14:04:05 changed 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.

05/07/09 17:18:34 changed by anonymous

  • type changed from enhancement to task.

05/07/09 17:25:55 changed by eblot

  • status changed from new to closed.
  • resolution set to fixed.

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


Add/Change #3869 (patch to make it work with 0.11)




Change Properties
Action