questbank permission bug?

Please report here problems and bugs
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 » Wed Aug 28, 2019 1:31 pm

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: 2128
Joined: Thu Mar 01, 2012 10:41 am

Re: questbank permission bug?

Post by max » Wed Aug 28, 2019 1:57 pm

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
http://www.elearnit.net
http://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
http://elearnit.wordpress.com
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 » Wed Aug 28, 2019 2:36 pm

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: 2128
Joined: Thu Mar 01, 2012 10:41 am

Re: questbank permission bug?

Post by max » Wed Aug 28, 2019 2:46 pm

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
http://www.elearnit.net
http://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
http://elearnit.wordpress.com
Skype: m_ferrari_it

alfa24
FormaLms Master
Posts: 535
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: questbank permission bug?

Post by alfa24 » Wed Aug 28, 2019 3:47 pm

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
I'm Jasmines, the One. If you need, you can contact me.

Post Reply