samtiria / nextgen-gallery

Automatically exported from code.google.com/p/nextgen-gallery
0 stars 0 forks source link

Changes to the get_editable_user_ids #464

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi Alex

During some messing around and debugging of issue 345 I discovered that the use 
of has_cap is strongly adviced against. With that in mind and the improved api 
for controlling users I decided to give it a shot at rewriting that function to 
use the new api.

I have attached the result, which I think is easier to read. The functionality 
should be the exact same. The good thing is that we avoid any arguments to the 
function and we avoid the use global variables to a larger extend.

I hope you don't mind me messing around with the code too much.

Original issue reported on code.google.com by kristian...@gmail.com on 25 Jan 2012 at 7:07

Attachments: