Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-csv-import
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-csv-import
Commits
14d76c9b
Commit
14d76c9b
authored
Sep 12, 2020
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Added permissions so that only users with permissions
can be overwritten
parent
c3cab87c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
import-person.tcl
www/import-person.tcl
+5
-1
No files found.
www/import-person.tcl
View file @
14d76c9b
...
...
@@ -417,7 +417,11 @@ foreach csv_line_fields $values_list_of_lists {
if {
$ns
_write_p} { ns_write "
<li>User already exists:
$first
_names
$last
_name email='$email'
\n
" }
}
if {
$overwrite
_existing_user_attributes_p ||
$new
_user_p } {
# Check the permission of current_user_id to modify user_id:
im_user_permissions
$current
_user_id
$user
_id user_view_p user_read_p user_write_p user_admin_p
if {
$user
_write_p && (
$overwrite
_existing_user_attributes_p ||
$new
_user_p)} {
if {
$ns
_write_p} { ns_write "
<li>Going to update the user's contact data
\n
" }
if {
[
catch
{
...
...
Write
Preview
Markdown
is supported
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