Modify

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

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

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

comment:2 Changed 6 years ago by jodok

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

comment:3 Changed 6 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

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.