_asset_page_match() doesn't check for user permission on 'create assets' or any other permissions. So, it always displays the link. For everyone...
Patch to follow shortly
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | asset_235051_1.patch | 665 bytes | mfer |
_asset_page_match() doesn't check for user permission on 'create assets' or any other permissions. So, it always displays the link. For everyone...
Patch to follow shortly
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | asset_235051_1.patch | 665 bytes | mfer |
Comments
Comment #1
mfer commentedA patch to _asset_page_match() that solves this. Not sure if this permissions check fits with the permissions scheme of the module though.
Comment #2
wmostrey commentedI also added the "administer assets" permission. Thanks for pointing this out, will be committed to dev tonight.
Comment #3
wmostrey commentedCommitted to dev, thanks a lot Matt!
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.