How can I make a block visible only for admin and teachers in Moodle? - block

I create and added a block in Moodle under a course. I want to make the block only visible for teachers and admin. How can I do this?
When students login to the site they should have no access(not visible) for them.
Please help me...
I am using Moodle 2.9.1

Just set it to Hidden Teachers and admin can still see it, but students cannot.

Related

How do I set up wiki.js as a private wiki?

Just need wiki.js for a small number of users, but would like to make it a private wiki. Any suggestions or links to resources on how to do this?
I do not know if this is the intended way of doing it. But you can go into Administration Area / Users / Groups, select Guests and in the Permissions tab uncheck everything and save. Afterwards everyone visiting your wiki will be required to login as an registered user.

Not Allowed Access for all modeul (Document model: ir.filters)

I got an error on my Odoo like on the picture, I've checked the user already has access to the user group. It's very thankful if you can help me.
I need more information but whenever you parform the action you are doing a security record rule is trggered, you can try the hard mode, go to security record rules and disable one rule and try and re enable after.
I add this setting (see on the picture) on the user's group I want to give access and it's solved. Apparently it's because the user does not have access to Object ir.filters which most of my modules use this.

Automatic login in website using login and password list

I'm trying to do something but I have no idea where to start, the idea is as follows:
I have a website where I'm testing the logins registered, I basically have to put login and password starting from a list that I get and check if the registration is or is not working, there are days that the list I get is huge and I wanted to automate it, no matter which way (js, vbs, c #) only automate...
I will try to explain better, for to be no doubt
I have a list of logins and passwords I want to automate, where I put the logins and passwords, and the "program" will testing one by one and separating what worked and what did not.
I'm not asking for someone give me all set, I just want to know where to start, what better way, so I can do it myself.
if anyone can help me I will be grateful, I hope I have explained the best way for you to understand.
sorry for my Inglês, I am writing this before going to work and I'm already late haha and Inglês is not my native language

Mediawiki creates custom group

I have a very confusing problem with my mediawiki at the moment. I was about to set up some new permissions in the localsettings.php and included the Namespace Protection plugin. But for some reason, I now have a new group where I can give permissions to the users which is called "Benutzer". It's the german translation for Users but i have no clue why it was created. Here a link to my actual localsettings.php: Link
When I look at the userrighs list, I also have to groups named "Benutzer". One is created by mediawiki and the other one I don't know...
Well, that wasn't the problem, but I fixed it now. In the localsettings.php, I wrote "$wgGroupPermissions['User']" instead of "$wgGroupPermissions['user']" so mediawiki thought i wanted to create a new group, and the big problem was, it localized it also, so I didn't saw my mistake.
But thanks for trying to help me :)
When displayed on special pages, the names of user groups are localized, so if your language i German, and the user group is called Benutzer, then everything is working as it should.
User group message documentation

RavenDB: how to check permissions for a user, wanting to perform an operation on a specific document

I have a multi-part, possibly confusing question... it's been a while
since I've dug in to the Authorization bundle, so it's taking me a bit
to remember how it all works. Bear with me as I struggle to make sense
of my thoughts, here :)
The majority of the code that I'm writing in my system uses a call to
the documentSession.IsAllowed method to check and see if the
AuthorizationUser has permissions for the Activity specified. This has
been working wonderfully for us, no problem. I'm expanding my app's
authorization to make use of tags now and I'm wondering:
Does the documentSession.IsAllowed method account for Tags on document
permissions, role permissions, and user permissions?
For example:
If I have Bob assigned to the Manager role. The Manager role is
assigned a permission to allow a "Review" operation, with a Tag of
"ReadyForReview" on that permission. How do I make a call to
documentSession.isAllowed in a way that verifies that Bob can "Review"
things that are tagged "ReadyForReview" ?
I realize that I may be asking the wrong question and/or looking at
this from the wrong perspective. If I am going about this wrong,
please let me know.
The end goal is really to say "Can Bob review this assignment?" Where
an Assignment is a document in RavenDB that may or may not have a
"ReadyForReview" tag. Bob should only be allowed to review assignments
that have the "ReadyForReview" tag. I would like to have a method that
gives me a boolean value telling me if Bob can review that document.
Derick,
In addition to simply IsAllowed, you also have IsOperationAllowedOnDocument.
That allows you to ask security questions about a specific document instance, not just globally.