No option to set the role

mineshaftgap - December 31, 2008 - 22:36
Project:Asset
Version:5.x-1.0
Component:User interface (Asset wizard)
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

No option to set the role

I cannot for the life of me find any way or documentation to set the role after setting the permission of an asset to private.

From the inline documentation: "By selecting Private, you can restrict which roles, if any, can access this asset. If you select Private and do not select any roles, you will be the only user with access to this asset."

Explicit steps to reproduce:

  1. Create content -> Page
  2. Title: Private Asset Test
  3. Body: Private Asset Test
  4. Insert Assets
  5. Upload
  6. Browse to Picture2.png
  7. Title: Picture2.png
  8. Author: Me
  9. Description: Picture2.png
  10. Permissions: Private
  11. Next
  12. Okay
  13. Formatting: Link
  14. Next
  15. Title: Picture2.png
  16. Finish
  17. Submit

Where am I missing setting the roles?

Things seem to be working, since I can explicitly set the right roles in the database with the following:

INSERT INTO asset_role (aid, rid, status)
SELECT a.aid, r.rid, 1
FROM asset a
JOIN role r ON (r.name = 'authenticated user')
WHERE a.filename = 'Picture2.png';

#1

HnLn - January 20, 2009 - 21:48

subscribe

 
 

Drupal is a registered trademark of Dries Buytaert.