Active
Project:
E-Journal
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 May 2010 at 17:51 UTC
Updated:
25 May 2010 at 18:43 UTC
I just have installed a fresh package of the latest 6.x-1.x-dev version of all the 5 ejournal modules. The first thing that came to my attention is that the "E-journal shortly" module claims to have its own permissions (admin/user/permissions#module-ejournalshortly) at admin/by-module and admin/help/ejournalshortly, but in fact the only permissions group added by these modules is the one from the E-journal main module (admin/user/permissions#module-ejournal).
Comments
Comment #1
romca commentedAre you sure there isn't any 'add ejournal-{jid} shortly' permission on the permission page?
Because that comes from the standard drupal hook.
But you must have at least one journal set up, otherwise the permission will not appear (would be useless, it is bound to a journal)
84 /**
85 * hook_perm: Define user permissions for module ejournal
86 */
87 function ejournalshortly_perm() {
88 $journals = db_query("SELECT * FROM {ejournal_journals} WHERE jid>=1");
89 while($journal = db_fetch_object($journals)) {
90 $perms[] = 'add ejournal-'.$journal->jid .' ' . 'shortly';
91 }
92 return $perms;
93 }
Comment #2
roball commentedAh I see. I checked the permissions page before defining any journal.