I installed the module, set the rights to admin the module but when I navigate to admin/settings/quota_by_role I get just these instrutions but no form to actually configure anything:

Quota by role

Key:

    * Limit to - The maximum number of posts/comments you want to allow specific roles to make in a specific time period.
    * Per - The time period previous to check for posts that "count" against the maximum number.
    * Content type - You can limit the quota to all content types, or a specific content type, thereby ignoring others.
    * Weight - Set the order for evaluating quota settings. Starts at -50, and ends at 50. The first negative match will be the final one.

Notes:

    * When a new role is added, there will be no quota set up for it. You need to come to this settings form to add a new quota.
    * Quotas are determined based on the weight. Processing starts at the lowest weight and is stopped at the first group match. It is a good idea to have groups that admins are in at the lowest weight.
    * User 1 will not be included in quota checks.

How can I configure the module?

Comments

introfini’s picture

Hi,

You need to give you "administer quota by role" permissions.

introfini

wpanssi’s picture

I have already done that...
Any other suggestions?

lazyboy’s picture

Hi wpanssi

I'm not too sure what can cause the problem. Usually that type of problem stems from that fact that the user can access the link for admin the module, but once you actually click on the link, you are denied access. The reason you see the top part (the Notes section), is because there is a different hook in drupal that renders that help screen, and then another hook that generates the actual body of the admin screen. The best I can suggest is to download the latest version module (http://drupal.org/project/quota_by_role). Make sure to completely uninstall the module, and install the new version. Let me know how it goes :)

Regards
lazyboy

wpanssi’s picture

Version: 5.x-5.x-dev » 5.x-7.1

Uninstalled the module, downloaded the latest version for 5.x but the problem remains..

wpanssi’s picture

I use a prefix in the table names, but this shouldn't be the cause I guess.

dmuth’s picture

Status: Active » Needs review

Here's your fix:

--- quota_by_role.module        2008/03/25 02:16:16     1.1
+++ quota_by_role.module        2008/03/25 02:15:39
@@ -154,7 +154,7 @@
 // Generates the settings page
 function quota_by_role_add_quota() {
   // Must have the correct permissions to access this page
-  if (!user_access('administer user quota')) {
+  if (!user_access('administer quota by role')) {
     return;
   }
 

The permission "administer user quota" wasn't used anywhere else in the module. I have NO idea what it is doing there.

lazyboy’s picture

Me neither! Thanks for the code, I've already committed it, and it's available for download.

Regards
lazyboy

lazyboy’s picture

Assigned: Unassigned » lazyboy
Status: Needs review » Closed (fixed)

Closing request. Problem seems to have been resolved.

lazyboy