I recently downloaded the gradebook module, I am an administrator at a site that uses drupal, I am not the first user (actually we forgot hat username and password) but I have all the possible administrating privileges. I can't access the admin/gradebook/gradebook page. could you please tell me what is the solution for such problem.

Comments

MGN’s picture

Status: Active » Fixed

Great catch. Its a typo in the gradebook.module file. I've fixed it and committed the change to 6.x-2.x-dev. Its an easy fix: change 'admin gradebook' to 'administer gradebook' on line 11 of gradebook.module. It should read:

function gradebook_perm() {
  return array('administer gradebook', 'access gradebook', 'attach files to gradebook');
}

I've also updated the README.txt file to reflect the switch from admin gradebook to administer gradebook.

Thanks for your help.

balsaify’s picture

I downloaded the 6.x-2.x-dev version, The module is yet to be modified. Anyway, I modified it and downloaded the modified version, The problem is still there.

MGN’s picture

Status: Fixed » Postponed (maintainer needs more info)

The dev version hasn't probably been packaged yet. It happens about twice a day automatically. You can always get the most up to date code from cvs.

If the user role has 'administer gradebook' permission (assigned at admin/user/permissions), then access should be granted to admin/gradebook/gradebook. After you made the change, did you check the 'administer gradebook' permission for the correct role on the permissions page?

If this isn't happening, tell me more about your setup that will help me to reproduce the problem.

Thanks

balsaify’s picture

Status: Postponed (maintainer needs more info) » Fixed

After I did the modification I rechecked the permissions, the administrator role has all of the permissions. regarding my setup, I just downloaded the 6.x-2.x-dev package, I enabled the module, and I gave permissions to the administrator.

balsaify’s picture

Status: Fixed » Postponed (maintainer needs more info)

Mr. Mike,

Did you find out what is wrong?

Baha' Alsaify

MGN’s picture

Status: Postponed (maintainer needs more info) » Active

Sorry. When you marked your last post as fixed, I thought you found the problem. So no, I haven't been able to reproduce this problem. I have made a lot of changes to the 6.x.2.x-dev version recently, so I would again recommend you try the latest version and see if it is still happening.

balsaify’s picture

Status: Active » Fixed

Yes. The problem is solved. Thank you

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.