|
Revision 1301, 0.7 kB
(checked in by dramirez, 1 year ago)
|
Moved from units to mod:
Updated .htaccess rules
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
global $USER; |
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
// When an access group is deleted, revert all profile items restricted to that group to private |
|---|
| 6 |
|
|---|
| 7 |
if (isset($parameter) && logged_on) { |
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
$group_id = (int) $parameter; |
|---|
| 11 |
|
|---|
| 12 |
$access = "user" . $_SESSION['userid']; |
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
// where the owner is the current user and access = 'group$group_id' |
|---|
| 16 |
set_field('profile_data','access',$access,'access','group'.$group_id,'owner',$USER->ident); |
|---|
| 17 |
|
|---|
| 18 |
} |
|---|
| 19 |
|
|---|
| 20 |
?> |
|---|