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
genotoul-bioinfo
ng6
Commits
481127c8
Commit
481127c8
authored
Jul 16, 2014
by
Penom Nom
Browse files
Correct a bug introduced with the new user modification wich allowed a member to add another user
parent
affb6437
Changes
1
Hide whitespace changes
Inline
Side-by-side
ui/nG6/pi1/project_view.tpl
View file @
481127c8
...
...
@@ -115,9 +115,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<th>
Right
</th>
</tr>
</thead>
{
assign
var
=
current_user_values
value
=
""
}
<tbody>
{
foreach
from
=
$project_users
key
=
c_user_id
item
=
user_values
}
{
if
$user_values.id
==
$user_id
}
{
assign
var
=
current_user_values
value
=
$user_values
}
{/
if
}
{* highlight user personnal line *}
{
assign
var
=
"emphasis"
value
=
""
}
{
if
$user_values.id
==
$user_id
}
...
...
@@ -194,16 +198,19 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
{
assign
var
=
"multipleu_selection_btn"
value
=
"multipleu-selection-btn"
}
{
if
$projects
[
key
(
$projects
)].
is_admin
||
$projects
[
key
(
$projects
)].
is_manager
}
{
elseif
$user_values.id
==
$user_id
}
{
assign
var
=
"disabled_delete"
value
=
"disabled"
}
{
elseif
$current_user_values.id
==
$user_id
}
{
assign
var
=
"disabled"
value
=
"disabled"
}
{
assign
var
=
"nou_selection_btn"
value
=
""
}
{
if
$current_user_values.right_id
==
'0'
}
{
assign
var
=
"nou_selection_btn"
value
=
""
}
{/
if
}
{
assign
var
=
"multipleu_selection_btn"
value
=
""
}
{/
if
}
<tfoot>
<tr>
<th
align=
"left"
colspan=
"8"
>
With selection :
With selection :
<div
class=
"btn-group"
>
<button
id=
"add_user"
type=
"button"
class=
"btn
{
$nou_selection_btn
}
btn-small"
{
$disabled
}
><i
class=
"icon-plus"
></i>
add user
</button>
<button
id=
"del_user"
type=
"button"
class=
"btn
{
$multipleu_selection_btn
}
btn-small"
{
$disabled
}
><i
class=
"icon-minus"
></i>
delete user
</button>
...
...
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