questbank permission bug?

Anything about what happens on the user and teacher side
Post Reply
maruggio
FormaLms User
Posts: 56
Joined: Mon Dec 17, 2018 1:51 pm
Version: forma.lms 2.0
Contact:

questbank permission bug?

Post by maruggio »

Hi

I am in FormaLMS 2.3 running a quest bank, I set all r/w permission correct for all types of user except ghost/guest. Login as student I am able to access the quest bank, but if I want to add a question as student. As teacher and mentor everything is working fine.

Then I wil be switched to follwing page:

Code: Select all

https://URL/appLms/index.php?modname=quest_bank&op=addquest
wit the th result on page

Code: Select all

You can't access/lms/course/private/12/storage/view
.

In Logs no error is shown.

Code: Select all

IPADDR - - [28/Aug/2019:13:56:22 +0200] "POST /appLms/index.php?modname=quest_bank&op=addquest HTTP/1.1" 200 372 "https://URL/appLms/index.php modname=quest_bank&op=main&id_module_sel=40&id_main_sel=139" "BROWSER INFO"
-oliver
User avatar
max
FormaLms Guru
Posts: 2735
Joined: Thu Mar 01, 2012 10:41 am
Version: forma.lms 2.4
Contact:

Re: questbank permission bug?

Post by max »

Take a look at the menu assigned to this course and at the permissions. Reassign it. Then try again.
I think this has more to do with cache, when you login and out as a student, then teacher, then student.
It's better to use separate browsers.
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
https://www.elearnit.net
https://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
Skype: m_ferrari_it
maruggio
FormaLms User
Posts: 56
Joined: Mon Dec 17, 2018 1:51 pm
Version: forma.lms 2.0
Contact:

Re: questbank permission bug?

Post by maruggio »

No chance. I tested it with 3 browser on 2 devices in 2 subnets. I deleted caches in browser, caches in firewall et al.
User avatar
max
FormaLms Guru
Posts: 2735
Joined: Thu Mar 01, 2012 10:41 am
Version: forma.lms 2.4
Contact:

Re: questbank permission bug?

Post by max »

I am on holiday now so I cannot check better. That issue to me looked like it was due to menu permissions. But I cannot add much now.
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
https://www.elearnit.net
https://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
Skype: m_ferrari_it
alfa24
Senior Boarder
Posts: 2009
Joined: Fri Nov 24, 2017 8:45 am

Re: questbank permission bug?

Post by alfa24 »

The function addquest in quest_bank module will be checking whether the user has view permission for storage module.
Don't know exactly why, and I have no time to investigate.
Anyway, you have two options:
1) comment out checkPerm('view', false, 'storage'); line in /appLms/modules/quest_bank/quest_bank.php
2) give your student view permission to storage module
Per supporto GRATUITO contattatemi in privato qui
Post Reply