Testing and QA

 
 
C'est moi :-)
Re: A BUG FOUND in "has_capability" function
Group Documentation writersGroup Particularly helpful MoodlersGroup TestersGroup Translators

Hi Ahmed,

I'm not a Moodle programmer, and won't give you a direct technical solution.

But you should take time to understand the way Moodle handles "rights" for people. It's all based on capabilities!

And you should test and rely on these rights : the rights the user has (or not) on a precise capability, in a specific context (your block).

Roles are only a way to group rights on capabilities, and affect them on specific contexts...

Hope this helps,
Séverin

 

 

 
Average of ratings:Useful (1)
Tim at Lone Pine Koala Sanctuary
Re: A BUG FOUND in "has_capability" function
Group DevelopersGroup Documentation writersGroup Particularly helpful Moodlers

That is good advice from Séverin. Section 13.2 of http://www.aosabook.org/en/moodle.html tries to explain this.

 
Average of ratings: -
TBC
Re: A BUG FOUND in "has_capability" function
 

DEAR ADMIN,

 

COULD YOU PLEASE DELETE THIS THREAD?

 

THANKS.

AHMED

 
Average of ratings: -
Picture of Helen Foster
Re: A BUG FOUND in "has_capability" function
Group DevelopersGroup Documentation writersGroup Moodle HQGroup Particularly helpful MoodlersGroup Testers

Dear Ahmed,

This thread contains a number of useful replies; thus it is not necessary for it to be deleted.

 
Average of ratings:Useful (1)
TBC
Re: A BUG FOUND in "has_capability" function
 

Dear Admin,

 

There are a duplicated thread at this URL: A BUG FOUND in "has_capability" function.

 

Thanks.

 

Ahmed

 
Average of ratings: -
Picture of Helen Foster
Re: A BUG FOUND in "has_capability" function
Group DevelopersGroup Documentation writersGroup Moodle HQGroup Particularly helpful MoodlersGroup Testers

That thread also contains a number of useful replies; thus it is not necessary for it to be deleted.

If duplicate posts are noticed soon, before they have any replies, it's fine for them to be deleted. However, it's not always possible for moderators to notice them soon, since they may be in a different time zone.

 
Average of ratings: -