@@ 106-112 (lines=7) @@ | ||
103 | { |
|
104 | $permissions = 0; |
|
105 | ||
106 | foreach ($gperms as $gperm) |
|
107 | { |
|
108 | if (isset($_REQUEST[$gperm[GPERMS_CONTROL]])) |
|
109 | { |
|
110 | $permissions |= $gperm[GPERMS_PERMISSION]; |
|
111 | } |
|
112 | } |
|
113 | ||
114 | group_set_permissions($id, $tid, $permissions); |
|
115 | } |
@@ 90-96 (lines=7) @@ | ||
87 | ||
88 | $permissions = 0; |
|
89 | ||
90 | foreach ($gperms as $gperm) |
|
91 | { |
|
92 | if (isset($_REQUEST[$gperm[GPERMS_CONTROL]])) |
|
93 | { |
|
94 | $permissions |= $gperm[GPERMS_PERMISSION]; |
|
95 | } |
|
96 | } |
|
97 | ||
98 | $gid = ustr2int(try_request('group', TEMPLATE_ROLE_AUTHOR), MIN_TEMPLATE_ROLE); |
|
99 |