I need to start my post saying that OJS is EXTREMELY well coded: object oriented, really well structured layers, based on patterns... so it's a complete joy working on it. More than this, although as a coder I must be ashamed saying this but... I'm learning how to code well reading OJS core.
If you are new to OJS, believe me: I work daily with drupal, moodle and other free software projects and I can say -without fear of been laying- that none of them is as well coded as OJS, so thanks a looot to make my developer's live easier. And I forget to mention the great documentation and wonderful support. Dudes, you are like my xmas present.
Ok, enough publicity and let's work:
Before working on my "normal-workflow plugin" (that I commented in former posts) my fellows requested me to build a new generic plugin to allow any non-author user upgrade him/herself to Author.
As far as I know, in OJS user's can select their role at registration time, but after this they can not change it without admin's help... My new plugin will add a extra link to the menu so if you are an Author you will get a shortcut redirected to article's submissions, otherwise your will be able to upgrade to Author (and then redirected to submissions).
¿My question? ... yes. I have my plugin quite finished, but I need to know what roles "own" the active user and obviously I can DAO but I suspect this data is available for the plugin without reaching the DB.
Am I wrong? How could I get this info without a DB query?
Thanks in advance for your help,
m.
PD-NEWS: I'm in contact with RACO's people that 90% completed a catalan translation of OJS, so probably after Christmas I can finish this translation so we could contribute to this project with a new translation.
