There is a simple typo in the multivariate.module file that prevents administrators (other than user 1) from accessing /multivariate. The admin page checks for "administer multivariate studies" but permission checked is for "administer multivariate entities".
Will attach patch fix in comments.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | multivariate-admin_permissions-1896828-1.patch | 2.92 KB | pivica |
| #1 | multivariate-admin_permissions-1896828.patch | 727 bytes | dshumaker |
Comments
Comment #1
dshumaker commentedAttached patch fix.
Comment #2
pivica commentedThanks.
But 'administer multivariate studies' permissions is used on more places in code, for example in multivariate_access() callback also, and it is maybe more descriptive for the end user instead of 'administer multivariate entities'.
Attached patch is renaming all 'administer multivariate entities' to 'administer multivariate studies'. Can you please test - don't forget to run update.php because menu item access arguments are changes so we need to clear menu cache.
Comment #3
danillonunes commentedPatch from #2 tested and working fine. The only thing is that there's some misleading white spaces in the .install chunk.
Comment #4
pivica commentedThx for review. Also fixed white spaces error.