Skip to content
GitLab
Menu
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
b1e0d07e
Commit
b1e0d07e
authored
Jan 18, 2007
by
Richard Mansfield
Browse files
Merge with
git+ssh://git.catalyst.net.nz/var/git/mahara.git
parents
f310c84a
e8f8c397
Changes
2
Hide whitespace changes
Inline
Side-by-side
htdocs/lang/en.utf8/admin.php
View file @
b1e0d07e
...
...
@@ -65,7 +65,7 @@ $string['sitepagesdescription'] = 'Edit the core site content';
$string
[
'sitemenu'
]
=
'Site menu'
;
$string
[
'sitemenudescription'
]
=
'Manage the links and files within the Main Menus'
;
$string
[
'adminfiles'
]
=
'Admin Files'
;
$string
[
'adminfilesdescription'
]
=
'Upload and administer files that can be put in the menus
(note: not implemented yet)
'
;
$string
[
'adminfilesdescription'
]
=
'Upload and administer files that can be put in the menus'
;
$string
[
'staffusers'
]
=
'Staff Users'
;
$string
[
'staffusersdescription'
]
=
'Assign users Staff permissions'
;
...
...
@@ -74,7 +74,7 @@ $string['adminusersdescription'] = 'Assign Site Administrator access rights';
$string
[
'institutions'
]
=
'Institutions'
;
$string
[
'institutionsdescription'
]
=
'Install and manage installed institutions'
;
$string
[
'adminnotifications'
]
=
'Admin Notifications'
;
$string
[
'adminnotificationsdescription'
]
=
'Configure how administrators receive system notifications
(note: not implemented yet)
'
;
$string
[
'adminnotificationsdescription'
]
=
'Configure how administrators receive system notifications'
;
$string
[
'uploadcsv'
]
=
'Add Users by CSV'
;
$string
[
'uploadcsvdescription'
]
=
'Upload a CSV file containing new users'
;
...
...
@@ -183,7 +183,7 @@ $string['suspenduser'] = 'Suspend User';
$string
[
'suspendedusers'
]
=
'Suspended Users'
;
$string
[
'suspensionreason'
]
=
'Suspension reason'
;
$string
[
'errorwhilesuspending'
]
=
'An error occured while trying to suspend'
;
$string
[
'suspendedusersdescription'
]
=
'Suspend or reactivate users from using the site
(note: not implemented yet)
'
;
$string
[
'suspendedusersdescription'
]
=
'Suspend or reactivate users from using the site'
;
$string
[
'unsuspendusers'
]
=
'Unsuspend Users'
;
$string
[
'usersdeletedsuccessfully'
]
=
'Users deleted successfully'
;
$string
[
'usersunsuspendedsuccessfully'
]
=
'Users unsuspended successfully'
;
...
...
htdocs/lib/mahara.php
View file @
b1e0d07e
...
...
@@ -1093,6 +1093,12 @@ function can_view_view($view_id, $user_id=null) {
return
true
;
}
// check admin
if
(
get_field
(
'usr'
,
'admin'
,
'id'
,
$user_id
))
{
log_debug
(
'Yes - You are a site administrator'
);
return
true
;
}
log_debug
(
'No - nothing matched'
);
return
false
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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