Giving course management permission to teacher in Moodle CMS - moodle

I want to give course management(Add new course) permission to teacher in Moodle CMS.
Admin already have this permission under Site Administration. How will I give this permission to Teacher. Thanks in advance.

Besides admin, there is two system-wide roles: Manager & Course creator.
By the sounds of it, you want the teachers to have the role as Course Creators, so they can create their own courses.
You can apply this role manually at:
Site administration -> Users -> Permissions -> Assign system roles
And then click 'Course creator' to assign this role to users.

Preben is correct, however if you give teachers the 'Course Creators' role they will also get a lot of other permissions you may not want them to have.
Go to:
Site administration -> Users -> Permissions -> Define Roles
Edit the 'teacher' role (by clicking on the cog) then in the permission search bar look for:
moodle/course:create
Change from default 'Not set' to 'Allow'. Teacher will basically be the same role with the added ability to create courses.

Related

Azure DevOps Shared Query permission not inheriting from Project Administrator Group

I am in the project administrator group, since we have a requirement to set the shared query to read-only to Contributors, I toggled the permission for Contributors to Deny except for "Read"
When I try to create new shared query, it says:
TF401256: You do not have Write permission for query Shared Queries.
I clicked on the three dots and bring up the "Permission for Shared Queries" menu, searched my name and a few other people in the Project Administrator Group or Project Collection Administrator Group, it shows all "Deny" permission except for the "Read" for all of us.
When I hover over, it says our permission is being inherited through the {project}\Contributors, but we are in the Administrator group.
Why is that and How can I fix it? I cannot even overwrite the permission. It is stuck at being inherited from the Contributor group.
enter image description here
It seems you are in a different group(project administrator group and Contributors), check this doc:
In the Azure DevOps, for most groups and almost all permissions, Deny overrides Allow. If a user belongs to two groups, and one of them has a specific permission set to Deny, that user is not able to perform tasks that require that permission even if they belong to a group that has that permission set to Allow.
This is why you get the error message. You could open project settings->Permissions->Search the permission group {project}\Contributors->click the tab Members and remove your account. Then you could create new shared query
Update1
Steps:
Open project settings->Teams->select the team->click the tab Settings->add Administrator, then we could move our account.
link to MS forum for this issue (or similar posted by other people):
https://developercommunity2.visualstudio.com/t/Project-administrator-cannot-save-shared/1339863
It just doesn't sound right to me that in order to have admin permission you cannot be in any team. That maybe workable for a test account but for an organization this workaround or restriction could mess things up a lot.

Restrict one user to see other users courses

I am kind of new to Moodle, but I am looking for the following:
I created two user(User1 and user2) from admin and both users have their own courses.
Structure is like:-
Admin have two Users:- User1 and User2
user1 have three course C1,C2,C3
user2 have two course C4,C5
And user1 and user2 should not see each others courses. Also, when the user clicks "All courses" he/she should still only see the assigned courses.
I found a plugin for this.it helped me to resolve all my issue. Hope it will help others too.
for demo you can visit
http://demo.iomad.org/
Iomad is completely free. Like Moodle, anyone is free to download and use the software
https://github.com/iomad
You may have to define a role for each user in Settings > Site administration > Users > Permissions > Define roles Assign system
There are more than a lot settings if you scroll down on create new role page.
And then assign that role to the each user from Settings > Site administration > Users > Permissions > Assign system roles
Though I am not entirely sure that this method will work as expected.
But this could be one of the options.

Is there a way to change default capabilities in mods (or anithing else) without changing the access.php file in moodle?

On my moodle install I want to set that the users can't add new entries to any glossary activity by default.
I now i can do it through modifying the capabilities manually in each activity through Glossary Administration -> Permissions but I want to set it to all instances by default.
I know i can also do it globally by modifying the access.php file in /mod/glossary/db/ but it is not the best option if I want to upgrade later.
So my question is, is there some place in the admin menu where i can set these globally in the admin menu?
Yes via the roles. Go to
site admin -> users -> permissions -> define roles
Choose "Authenticated user" - this is the default role for everyone.
Click the advanced button
Then filter for "mod/glossary:write"
And change the permission to Prevent or Prohibit
Prevent means the default user hasn't got access but it can be overruled by another role
Prohibit means it can't be overruled by another role - only admins will have access.

Sitecore - Is there a way to clone/duplicate a user in the User Manager?

I have an account setup exactly the way I'd like a number of individuals accounts setup and I'd like to create them as clones of this account so the get the initial set of permissions without me having to manually set all the permission on each account.
Note: It is fine (ideal?) if once the accounts are created that they no longer have a relationship with the original account. For instance, if User A is the base account that is being used to create all the other accounts, once User B is made from User A then all further changes on User A will not be reflected on User B.
Any ideas?
In answer to your question: no, there is no clone/copy user feature in the User Editor in Sitecore.
It sounds like you would be better off creating a role with all these permissions, then assigning this role to any new users you create. You could then modify the permissions of the individual users as necessary.
Note this would not be the ideal solution as it's always better to apply security to roles rather than individual users.
Perhaps you could achieve what you need by creating a collection of roles and assigning different combinations of them to each user?
Try installing this Sitecore Module.This will clone the user in User Manager
SITECORE USER CLONE
Sitecore User Clone is used to create the copy of the user with the same roles, name, email, and profile. It will prompt to accept the new username, password and all the editable fields same like Edit user.

SugarCRM - how to make users see only child users?

I want to change the behaviour of Sugar CRM community version. Here's what sugar currently does:
Admin logs into Sugar
Admin clicks on Admin tab
Admin creates a new user named George with admin access
Under user information section, Admin makes George report to Admin (in the database, it will show users.report_to_id is the admin's user_id)
Admin saves and logs out
George logs in with his password
George goes to admin tab.
George goes to list users page and sees all users, including Admin, the person he is supposed to report to.
I want to change step 8 such that George is not allowed to see the user he "reports to". George should only be able to see child users and descendants of those child users. George should not be able to see anyone above him.
How can I achieve this? will sugar support this feature?
#John - You need to look at creating roles under role management.
Role management allows you to enable / disable rights.
I learned that this requires a lot of code customization. Here's a thread that explains it
http://www.sugarcrm.com/forums/showthread.php?t=59216