tube:grant() does not grant privileges to all public api methods
rybakit opened this issue · 2 comments
rybakit commented
So far, I've found the following methods that lack privileges:
- tube:truncate()
- queue.stats()
- queue.statistics()
Totktonada commented
Cite from README:
tube:truncate()- delete all tasks from the tube. Note thattube:truncate
must be called only by the user who created this tube (has space ownership) OR
under asetuidfunction. Read more aboutsetuidfunctions
here.
Totktonada commented
Raw idea: We can provide an option to control whether appropriate priveleges should be granted for :truncate().