Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 527... Línea 527...
527
            'editingteacher' => CAP_ALLOW,
527
            'editingteacher' => CAP_ALLOW,
528
            'manager' => CAP_ALLOW
528
            'manager' => CAP_ALLOW
529
        )
529
        )
530
    ),
530
    ),
Línea -... Línea 531...
-
 
531
 
-
 
532
    'moodle/user:viewprofilepictures' => [
-
 
533
        'captype' => 'read',
-
 
534
        'contextlevel' => CONTEXT_SYSTEM,
-
 
535
        'archetypes' => [
-
 
536
            'guest' => CAP_ALLOW,
-
 
537
            'user' => CAP_ALLOW,
-
 
538
        ],
-
 
539
    ],
531
 
540
 
532
    'moodle/user:viewalldetails' => array(
541
    'moodle/user:viewalldetails' => array(
533
        'riskbitmask' => RISK_PERSONAL,
542
        'riskbitmask' => RISK_PERSONAL,
534
        'captype' => 'read',
543
        'captype' => 'read',
535
        'contextlevel' => CONTEXT_USER,
544
        'contextlevel' => CONTEXT_USER,
Línea 1014... Línea 1023...
1014
            'editingteacher' => CAP_ALLOW,
1023
            'editingteacher' => CAP_ALLOW,
1015
            'manager' => CAP_ALLOW
1024
            'manager' => CAP_ALLOW
1016
        )
1025
        )
1017
    ),
1026
    ),
Línea -... Línea 1027...
-
 
1027
 
-
 
1028
    'moodle/course:viewoverview' => [
-
 
1029
        'captype' => 'read',
-
 
1030
        'contextlevel' => CONTEXT_COURSE,
-
 
1031
        'archetypes' => [
-
 
1032
            'student' => CAP_ALLOW,
-
 
1033
            'teacher' => CAP_ALLOW,
-
 
1034
            'editingteacher' => CAP_ALLOW,
-
 
1035
            'manager' => CAP_ALLOW,
-
 
1036
        ],
-
 
1037
    ],
1018
 
1038
 
Línea 1019... Línea 1039...
1019
    'moodle/course:changefullname' => array(
1039
    'moodle/course:changefullname' => array(
Línea 1020... Línea 1040...
1020
 
1040
 
Línea 1484... Línea 1504...
1484
    ),
1504
    ),
1485
    'moodle/question:usemine' => array(
1505
    'moodle/question:usemine' => array(
1486
        'captype' => 'read',
1506
        'captype' => 'read',
1487
        'contextlevel' => CONTEXT_COURSE,
1507
        'contextlevel' => CONTEXT_COURSE,
1488
        'archetypes' => array(
1508
        'archetypes' => array(
-
 
1509
            'teacher' => CAP_ALLOW,
1489
            'editingteacher' => CAP_ALLOW,
1510
            'editingteacher' => CAP_ALLOW,
1490
            'manager' => CAP_ALLOW
1511
            'manager' => CAP_ALLOW
1491
        ),
1512
        ),
1492
        'clonepermissionsfrom' =>  'moodle/question:manage'
1513
        'clonepermissionsfrom' =>  'moodle/question:manage'
1493
    ),
1514
    ),
1494
    'moodle/question:useall' => array(
1515
    'moodle/question:useall' => array(
1495
        'captype' => 'read',
1516
        'captype' => 'read',
1496
        'contextlevel' => CONTEXT_COURSE,
1517
        'contextlevel' => CONTEXT_COURSE,
1497
        'archetypes' => array(
1518
        'archetypes' => array(
-
 
1519
            'teacher' => CAP_ALLOW,
1498
            'editingteacher' => CAP_ALLOW,
1520
            'editingteacher' => CAP_ALLOW,
1499
            'manager' => CAP_ALLOW
1521
            'manager' => CAP_ALLOW
1500
        ),
1522
        ),
1501
        'clonepermissionsfrom' =>  'moodle/question:manage'
1523
        'clonepermissionsfrom' =>  'moodle/question:manage'
1502
    ),
1524
    ),
Línea 2627... Línea 2649...
2627
            'coursecreator' => CAP_ALLOW,
2649
            'coursecreator' => CAP_ALLOW,
2628
            'editingteacher' => CAP_ALLOW,
2650
            'editingteacher' => CAP_ALLOW,
2629
        ]
2651
        ]
2630
    ],
2652
    ],
Línea -... Línea 2653...
-
 
2653
 
-
 
2654
    'moodle/contentbank:configurecustomfields' => [
-
 
2655
        'riskbitmask' => RISK_SPAM,
-
 
2656
        'captype' => 'write',
-
 
2657
        'contextlevel' => CONTEXT_COURSE,
-
 
2658
        'archetypes' => [
-
 
2659
            'manager' => CAP_ALLOW,
-
 
2660
        ],
-
 
2661
    ],
-
 
2662
 
-
 
2663
    'moodle/contentbank:changelockedcustomfields' => [
-
 
2664
        'riskbitmask' => RISK_SPAM,
-
 
2665
        'captype' => 'write',
-
 
2666
        'contextlevel' => CONTEXT_COURSE,
-
 
2667
        'archetypes' => [
-
 
2668
            'manager' => CAP_ALLOW,
-
 
2669
        ],
-
 
2670
    ],
2631
 
2671
 
2632
    // Allow users to download course content.
2672
    // Allow users to download course content.
2633
    'moodle/course:downloadcoursecontent' => [
2673
    'moodle/course:downloadcoursecontent' => [
2634
        'captype' => 'read',
2674
        'captype' => 'read',
2635
        'contextlevel' => CONTEXT_COURSE,
2675
        'contextlevel' => CONTEXT_COURSE,
Línea 2709... Línea 2749...
2709
        'riskbitmap' => RISK_PERSONAL,
2749
        'riskbitmap' => RISK_PERSONAL,
2710
        'contextlevel' => CONTEXT_SYSTEM,
2750
        'contextlevel' => CONTEXT_SYSTEM,
2711
        'archetypes' => [],
2751
        'archetypes' => [],
2712
    ],
2752
    ],
Línea -... Línea 2753...
-
 
2753
 
-
 
2754
    // Allow users to configure custom fields for custom reports.
-
 
2755
    'moodle/reportbuilder:configurecustomfields' => [
-
 
2756
        'captype' => 'write',
-
 
2757
        'riskbitmap' => RISK_PERSONAL,
-
 
2758
        'contextlevel' => CONTEXT_SYSTEM,
-
 
2759
        'archetypes' => [],
-
 
2760
    ],
2713
 
2761
 
2714
    // Allow users to schedule reports as other users.
2762
    // Allow users to schedule reports as other users.
2715
    'moodle/reportbuilder:scheduleviewas' => [
2763
    'moodle/reportbuilder:scheduleviewas' => [
2716
        'captype' => 'read',
2764
        'captype' => 'read',
2717
        'riskbitmap' => RISK_PERSONAL,
2765
        'riskbitmap' => RISK_PERSONAL,
Línea 2746... Línea 2794...
2746
        'archetypes' => [
2794
        'archetypes' => [
2747
            'editingteacher' => CAP_ALLOW,
2795
            'editingteacher' => CAP_ALLOW,
2748
            'manager' => CAP_ALLOW,
2796
            'manager' => CAP_ALLOW,
2749
        ]
2797
        ]
2750
    ],
2798
    ],
-
 
2799
 
-
 
2800
    // Allow users to edit course welcome messages.
-
 
2801
    'moodle/course:editcoursewelcomemessage' => [
-
 
2802
        'captype' => 'write',
-
 
2803
        'contextlevel' => CONTEXT_COURSE,
-
 
2804
        'archetypes' => [
-
 
2805
            'editingteacher' => CAP_ALLOW,
-
 
2806
            'manager' => CAP_ALLOW,
-
 
2807
        ],
-
 
2808
    ],
-
 
2809
 
-
 
2810
    // Set a users acceptance of the AI policy.
-
 
2811
    'moodle/ai:fetchanyuserpolicystatus' => [
-
 
2812
        'captype' => 'write',
-
 
2813
        'contextlevel' => CONTEXT_SYSTEM,
-
 
2814
        'archetypes' => [
-
 
2815
            'user' => CAP_ALLOW,
-
 
2816
        ],
-
 
2817
    ],
-
 
2818
    // Set a users acceptance of the AI policy.
-
 
2819
    'moodle/ai:acceptpolicy' => [
-
 
2820
        'captype' => 'write',
-
 
2821
        'contextlevel' => CONTEXT_SYSTEM,
-
 
2822
        'archetypes' => [
-
 
2823
            'user' => CAP_ALLOW,
-
 
2824
        ],
-
 
2825
    ],
-
 
2826
    // Get a users acceptance of the AI policy.
-
 
2827
    'moodle/ai:fetchpolicy' => [
-
 
2828
        'captype' => 'read',
-
 
2829
        'contextlevel' => CONTEXT_SYSTEM,
-
 
2830
        'archetypes' => [
-
 
2831
            'user' => CAP_ALLOW,
-
 
2832
        ],
-
 
2833
    ],
-
 
2834
    // Allow managers to view the AI policy acceptance report.
-
 
2835
    'moodle/ai:viewaipolicyacceptancereport' => [
-
 
2836
        'riskbitmask' => RISK_PERSONAL,
-
 
2837
        'captype' => 'read',
-
 
2838
        'contextlevel' => CONTEXT_SYSTEM,
-
 
2839
        'archetypes' => [
-
 
2840
            'manager' => CAP_ALLOW,
-
 
2841
        ],
-
 
2842
    ],
-
 
2843
    // Allow managers to view the AI usage report.
-
 
2844
    'moodle/ai:viewaiusagereport' => [
-
 
2845
        'riskbitmask' => RISK_PERSONAL,
-
 
2846
        'captype' => 'read',
-
 
2847
        'contextlevel' => CONTEXT_SYSTEM,
-
 
2848
        'archetypes' => [
-
 
2849
            'manager' => CAP_ALLOW,
-
 
2850
        ],
-
 
2851
    ],
2751
);
2852
);