Fixed a bug in repository listing.
Fixed permissions in UI.
Removed debug writeline.