tarantool / queue

Create task queues, add and take jobs, monitor failed tasks
Other
237 stars 52 forks source link

tube:grant() does not grant privileges to all public api methods #115

Closed rybakit closed 2 years ago

rybakit commented 4 years ago

So far, I've found the following methods that lack privileges:

Totktonada commented 4 years ago

Cite from README:

  • tube:truncate() - delete all tasks from the tube. Note that tube:truncate
    must be called only by the user who created this tube (has space ownership) OR under a setuid function. Read more about setuid functions here.
Totktonada commented 4 years ago

Raw idea: We can provide an option to control whether appropriate priveleges should be granted for :truncate().