MDL-52895 webservice: Fix capability checks
[moodle.git] / admin / roles / role_schema.xml
blobf0a33c9ecc0bc2c387a399941b9c24aa3ba9a8f8
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
3     <xs:element name="role">
4         <xs:complexType>
5             <xs:sequence>
6                 <xs:element ref="shortname" minOccurs="0"/>
7                 <xs:element ref="name" minOccurs="0"/>
8                 <xs:element ref="description" minOccurs="0"/>
9                 <xs:element ref="archetype" minOccurs="0"/>
10                 <xs:element ref="contextlevels" minOccurs="0"/>
11                 <xs:element ref="allowassign" minOccurs="0"/>
12                 <xs:element ref="allowoverride" minOccurs="0"/>
13                 <xs:element ref="allowswitch" minOccurs="0"/>
14                 <xs:element ref="permissions" minOccurs="0"/>
15             </xs:sequence>
16         </xs:complexType>
17     </xs:element>
18     <xs:element name="archetype" type="xs:string"/>
19     <xs:element name="contextlevels">
20         <xs:complexType>
21             <xs:sequence>
22                 <xs:element minOccurs="0" maxOccurs="unbounded" ref="level"/>
23             </xs:sequence>
24         </xs:complexType>
25     </xs:element>
26     <xs:element name="level" type="xs:string"/>
27     <xs:element name="allowassign">
28         <xs:complexType>
29             <xs:sequence>
30                 <xs:element maxOccurs="unbounded" minOccurs="0" ref="shortname"/>
31             </xs:sequence>
32         </xs:complexType>
33     </xs:element>
34     <xs:element name="allowoverride">
35         <xs:complexType>
36             <xs:sequence>
37                 <xs:element maxOccurs="unbounded" minOccurs="0" ref="shortname"/>
38             </xs:sequence>
39         </xs:complexType>
40     </xs:element>
41     <xs:element name="allowswitch">
42         <xs:complexType>
43             <xs:sequence>
44                 <xs:element maxOccurs="unbounded" minOccurs="0" ref="shortname"/>
45             </xs:sequence>
46         </xs:complexType>
47     </xs:element>
48     <xs:element name="permissions">
49         <xs:complexType>
50             <xs:sequence>
51                 <xs:element ref="inherit" minOccurs="0" maxOccurs="unbounded"/>
52                 <xs:element ref="allow" minOccurs="0" maxOccurs="unbounded"/>
53                 <xs:element ref="prevent" minOccurs="0" maxOccurs="unbounded"/>
54                 <xs:element ref="prohibit" minOccurs="0" maxOccurs="unbounded"/>
55             </xs:sequence>
56         </xs:complexType>
57     </xs:element>
58     <xs:element name="shortname" type="xs:string"/>
59     <xs:element name="name" type="xs:string"/>
60     <xs:element name="description" type="xs:string"/>
61     <xs:element name="inherit" type="xs:string"/>
62     <xs:element name="allow" type="xs:string"/>
63     <xs:element name="prevent" type="xs:string"/>
64     <xs:element name="prohibit" type="xs:string"/>
65 </xs:schema>