Modify

Opened 9 years ago

Closed 8 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 8 years ago by Jon Schewe

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

comment:2 Changed 8 years ago by Jodok Batlogg

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

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

Type: enhancementtask

comment:5 Changed 8 years ago by Emmanuel Blot

Resolution: fixed
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Emmanuel Blot.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.