Asset Listing "Write Permission" keyword?

I’ve got a number of files (sometimes hundreds per page) listed using an asset listing. I’ve got a couple of editors who update these files, but are complaining that the “simple edit” interface is too slow and confusing.


What I’d like to do is add an edit icon next to each file which takes the user straight to the _edit interface for that file.



I’ve done similar things with Wordpress in the past, so I was wondering if there’s a “this user has write permission: true/false” keyword I can use to hide the edit buttons from people who don’t have access. The only permission related keywords I can find print comma-separated values which I don’t imagine would be much help.



Am I thinking along the right lines, or is there something else I can try?

There is an effective permission level setting in the details screen of the asset listing that will allow you to restrict the listing to show items only if you have X permission, but that sounds slightly different to what you wanted to achieve. If you generated the listing using the js api call getChildren you will get back a property that shows the users maximum permission level for that asset, only thing I can think of off the top of my head.

I have done this using a paint layout then setting a conditional keyword for write access. So, you could hide your edit link within the conditional keywords, so that it would only show the link for those assets that it has permissions for.

[quote]
I have done this using a paint layout then setting a conditional keyword for write access. So, you could hide your edit link within the conditional keywords, so that it would only show the link for those assets that it has permissions for.

[/quote]



That’s pretty cool. I’m already using the one paint layout to apply a generic asset listing to a bunch of folders, so I’m thinking of also using it to determine if a user has write access on the current folder, then include a Javascript to create edit links on the items in the asset listing.



Cheers for the ideas. :smiley:



Edit: The paint layout idea was spot on. While it doesn’t differentiate between assets in the asset listing, it’s a reasonable assumption that if I have permission of an asset I should also have permission over its children. Works a treat. :slight_smile: