Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
6b688bb5
Commit
6b688bb5
authored
Dec 13, 2007
by
Richard Mansfield
Browse files
Show admin activities for institutional admins and make internal the default notification
parent
f11d5082
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/account/activity/preferences/index.php
View file @
6b688bb5
...
...
@@ -34,7 +34,7 @@ require(dirname(dirname(dirname(dirname(__FILE__)))) . '/init.php');
require_once
(
'pieforms/pieform.php'
);
$activitytypes
=
get_records_array
(
'activity_type'
,
'admin'
,
0
);
if
(
$USER
->
get
(
'admin'
))
{
if
(
$USER
->
get
(
'admin'
)
||
$USER
->
is_institutional_admin
()
)
{
$admintypes
=
get_records_array
(
'activity_type'
,
'admin'
,
1
);
$activitytypes
=
array_merge
(
$activitytypes
,
$admintypes
);
}
...
...
@@ -50,7 +50,7 @@ foreach ($notifications as $n) {
foreach
(
$activitytypes
as
$type
)
{
$dv
=
$USER
->
get_activity_preference
(
$type
->
name
);
if
(
empty
(
$dv
))
{
if
(
!
empty
(
$type
->
admin
))
{
if
(
!
empty
(
$type
->
admin
)
&&
$USER
->
get
(
'admin'
)
)
{
$dv
=
'none'
;
}
else
{
$dv
=
'internal'
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment