platal.git
13 years agoUpdate ChangeLog
Florent Bruneau [Tue, 12 Oct 2010 08:41:37 +0000 (10:41 +0200)]
Update ChangeLog

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoMerge: improves promotion comparison, adds name comparison.
Stéphane Jacob [Mon, 11 Oct 2010 20:30:06 +0000 (22:30 +0200)]
Merge: improves promotion comparison, adds name comparison.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
13 years agoUpdate core
Florent Bruneau [Mon, 11 Oct 2010 15:15:36 +0000 (17:15 +0200)]
Update core

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoFix php 'recoverable errors' when saving changes in the profile's job
Florent Bruneau [Mon, 11 Oct 2010 14:53:22 +0000 (16:53 +0200)]
Fix php 'recoverable errors' when saving changes in the profile's job
page.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoSave profile within a SQL transaction in order to avoid inconsistent
Florent Bruneau [Mon, 11 Oct 2010 14:38:40 +0000 (16:38 +0200)]
Save profile within a SQL transaction in order to avoid inconsistent
states if a SQL error occurs while saving the changes.

This change should not have any consequence if the site behave normally
but may improve robustness in case of code errors.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoPublicity of the job was not always properly initialized.
Florent Bruneau [Mon, 11 Oct 2010 14:29:53 +0000 (16:29 +0200)]
Publicity of the job was not always properly initialized.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoDon't show 'report spam' item in menu for user without email account.
Florent Bruneau [Mon, 11 Oct 2010 13:58:17 +0000 (15:58 +0200)]
Don't show 'report spam' item in menu for user without email account.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoUse a dropdown instead of checkbox to select the sex of a new account.
Florent Bruneau [Mon, 11 Oct 2010 13:44:03 +0000 (15:44 +0200)]
Use a dropdown instead of checkbox to select the sex of a new account.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoFix profile/{alias} (that is required for backward compatibility).
Florent Bruneau [Mon, 11 Oct 2010 13:10:47 +0000 (15:10 +0200)]
Fix profile/{alias} (that is required for backward compatibility).

BTW, this also fix the links for profile/{alias}@polytechnique.org

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoMerge remote branch 'origin/platal-1.0.0'
Florent Bruneau [Mon, 11 Oct 2010 12:54:07 +0000 (14:54 +0200)]
Merge remote branch 'origin/platal-1.0.0'

13 years agoFix edition of pending surveys, Closes #1263
Florent Bruneau [Mon, 11 Oct 2010 08:59:16 +0000 (10:59 +0200)]
Fix edition of pending surveys, Closes #1263

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoUpdate ChangeLog
Florent Bruneau [Mon, 11 Oct 2010 09:48:36 +0000 (11:48 +0200)]
Update ChangeLog

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoAllow access to the results of a survey by its owner before the end of the
Florent Bruneau [Mon, 11 Oct 2010 09:37:15 +0000 (11:37 +0200)]
Allow access to the results of a survey by its owner before the end of the
survey. Closes #964

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoFix edition of pending surveys, Closes #1263
Florent Bruneau [Mon, 11 Oct 2010 08:59:16 +0000 (10:59 +0200)]
Fix edition of pending surveys, Closes #1263

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoReplace field for 'networking type' in advanced search (Closes #1251)
Raphaël Barrois [Sun, 10 Oct 2010 18:52:19 +0000 (20:52 +0200)]
Replace field for 'networking type' in advanced search (Closes #1251)

Use a list of options instead.
Special valued: -1 => Any, 0 => empty

Fix UserFilterBuilderFields as well.

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
13 years agoForce utf8 in upgrade scripts.
Florent Bruneau [Sun, 10 Oct 2010 13:50:25 +0000 (15:50 +0200)]
Force utf8 in upgrade scripts.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoMerge remote branch 'origin/platal-1.0.0'
Florent Bruneau [Sun, 10 Oct 2010 09:24:53 +0000 (11:24 +0200)]
Merge remote branch 'origin/platal-1.0.0'

13 years agoUpdate core
Florent Bruneau [Sun, 10 Oct 2010 09:24:42 +0000 (11:24 +0200)]
Update core

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoFix ids_from_emails (errors when invalid @x.org emails were given).
Raphaël Barrois [Sat, 9 Oct 2010 23:24:39 +0000 (01:24 +0200)]
Fix ids_from_emails (errors when invalid @x.org emails were given).

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
13 years agoImproves upgrade script.
Florent Bruneau [Fri, 8 Oct 2010 15:47:49 +0000 (17:47 +0200)]
Improves upgrade script.

- If SOURCE_DATABASE environment variable is defined, the scripts begins
  by creating DATABASE and copying the content of SOURCE_DATABASE in
  DATABASE. This feature will be available for all future upgrade
  scripts that starts with "copy_db".

- Disable failing (and in my point of view unfixable) statements:
  ALTER TABLE payment_transactions ADD UNIQUE KEY fullref (fullref)

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoUpdates and improves code for Xorg/AX directory merge.
Stéphane Jacob [Tue, 28 Sep 2010 21:22:29 +0000 (23:22 +0200)]
Updates and improves code for Xorg/AX directory merge.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
13 years agoAdministrators can easily switch between skins (without affecting their
Florent Bruneau [Fri, 8 Oct 2010 09:22:30 +0000 (11:22 +0200)]
Administrators can easily switch between skins (without affecting their
default skin), making tests with a specific skin much easier.

Note: Maybe it might be a better idea to enable this feature for all
users when the site is in debug mode and hide this (even for
administrators) when the site is in release mode.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoAdd profile edition link on minifiche.
Florent Bruneau [Fri, 8 Oct 2010 08:03:00 +0000 (10:03 +0200)]
Add profile edition link on minifiche.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoAdd documentation of all known configuration keys in platal.ini
Florent Bruneau [Thu, 7 Oct 2010 16:33:34 +0000 (18:33 +0200)]
Add documentation of all known configuration keys in platal.ini

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoHTML validation.
Stéphane Jacob [Thu, 7 Oct 2010 14:34:57 +0000 (16:34 +0200)]
HTML validation.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
13 years agoUpdate core
Florent Bruneau [Thu, 7 Oct 2010 12:22:50 +0000 (14:22 +0200)]
Update core

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoAdd explanation.
Florent Bruneau [Thu, 7 Oct 2010 12:11:26 +0000 (14:11 +0200)]
Add explanation.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoUse XDB::startTransaction() and XDB::commit().
Florent Bruneau [Thu, 7 Oct 2010 12:00:35 +0000 (14:00 +0200)]
Use XDB::startTransaction() and XDB::commit().

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoReduce the number of SQL queries performed during the reindexation
Florent Bruneau [Thu, 7 Oct 2010 11:57:52 +0000 (13:57 +0200)]
Reduce the number of SQL queries performed during the reindexation
of the search names in order to reduce the execution time of the script
(from 155s to 85s).

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoThe script filling the search_name table has been fixed, so include a full
Florent Bruneau [Thu, 7 Oct 2010 11:56:46 +0000 (13:56 +0200)]
The script filling the search_name table has been fixed, so include a full
reindexation in the upgrade script.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoUpdate core
Florent Bruneau [Thu, 7 Oct 2010 11:56:33 +0000 (13:56 +0200)]
Update core

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoFix publicity of entries in search_name table.
Florent Bruneau [Thu, 7 Oct 2010 11:13:18 +0000 (13:13 +0200)]
Fix publicity of entries in search_name table.

A full reindexation of the names must be performed during the upgrade.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoFixes pid/uid mixed up error.
Stéphane Jacob [Thu, 7 Oct 2010 08:48:06 +0000 (10:48 +0200)]
Fixes pid/uid mixed up error.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
13 years agoFix quick search shortcuts (admin:, profile:...) to support new login
Florent Bruneau [Wed, 6 Oct 2010 16:28:58 +0000 (18:28 +0200)]
Fix quick search shortcuts (admin:, profile:...) to support new login
patterns (.ax, .m2010, .d2009, .fx, ...).

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoFix admin/logger when the user has no entry in the aliases table.
Florent Bruneau [Wed, 6 Oct 2010 16:22:25 +0000 (18:22 +0200)]
Fix admin/logger when the user has no entry in the aliases table.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoDon't redirect to the marketing page when trying to view the profile
Florent Bruneau [Wed, 6 Oct 2010 14:00:57 +0000 (16:00 +0200)]
Don't redirect to the marketing page when trying to view the profile
of a not-registered user.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoTokenize names during profile insertion.
Florent Bruneau [Wed, 6 Oct 2010 13:59:44 +0000 (15:59 +0200)]
Tokenize names during profile insertion.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoShould fix access for unlogged users.
Florent Bruneau [Wed, 6 Oct 2010 13:15:43 +0000 (15:15 +0200)]
Should fix access for unlogged users.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoFix insertion of new users by admin/add_accounts:
Florent Bruneau [Wed, 6 Oct 2010 13:14:15 +0000 (15:14 +0200)]
Fix insertion of new users by admin/add_accounts:

 - use a transaction to insert all the elements (avoid half-added users)
 - insert firstname and lastname in addition to their initial values
 - fix account insertion query (missing {?} and state must be pending).

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoDon't require AUTH_MDP to lower permissions of the user.
Florent Bruneau [Wed, 6 Oct 2010 12:29:12 +0000 (14:29 +0200)]
Don't require AUTH_MDP to lower permissions of the user.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoFix and improves the 'become user' feature.
Florent Bruneau [Wed, 6 Oct 2010 08:59:53 +0000 (10:59 +0200)]
Fix and improves the 'become user' feature.

You can now select an account type among all available types and see the
site with the permissions of this type. Leaving a SUID session go back to
the page where the SUID session has been started.

Note: The site seen by someone with this account type might be a bit
different since some parameters are independent from the type (like the
fact your account is attached to a profile).

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoFix initialisation of Address::flags: the flags where built only for
Florent Bruneau [Wed, 6 Oct 2010 08:20:09 +0000 (10:20 +0200)]
Fix initialisation of Address::flags: the flags where built only for
personal adresses leading to errors when calling Address::hasFlag() on an
address attached to a job.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoFix quick search broken by 7188601607762f52cf2688b4e97cedd5e36c8ad7.
Florent Bruneau [Wed, 6 Oct 2010 08:10:45 +0000 (10:10 +0200)]
Fix quick search broken by 7188601607762f52cf2688b4e97cedd5e36c8ad7.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoUpdate core
Florent Bruneau [Tue, 5 Oct 2010 20:36:51 +0000 (22:36 +0200)]
Update core

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoAdd code for creating a dummy admin account in the upgrade/setup folder.
Raphaël Barrois [Tue, 5 Oct 2010 18:01:02 +0000 (20:01 +0200)]
Add code for creating a dummy admin account in the upgrade/setup folder.

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
13 years agoFix export_sql script (fix autocomplete)
Raphaël Barrois [Tue, 5 Oct 2010 17:57:57 +0000 (19:57 +0200)]
Fix export_sql script (fix autocomplete)

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
13 years agoUpdate table list.
Raphaël Barrois [Tue, 5 Oct 2010 15:37:42 +0000 (17:37 +0200)]
Update table list.

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
13 years agoAllow edition of the email of the user from the admin page.
Florent Bruneau [Mon, 4 Oct 2010 15:41:32 +0000 (17:41 +0200)]
Allow edition of the email of the user from the admin page.

This is possible only if the user email is not managed by the site (so for
user without the 'mail' permission). Changing the email update the
subscription in mailman.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoManual transfer confirmation
Damien Bobillot [Sun, 3 Oct 2010 22:29:23 +0000 (00:29 +0200)]
Manual transfer confirmation

13 years agoReconcilation tool is now working, and generates the list of bank transfers to do.
Damien Bobillot [Sun, 3 Oct 2010 21:53:15 +0000 (23:53 +0200)]
Reconcilation tool is now working, and generates the list of bank transfers to do.

13 years agoAdd the list of the groups of the user and the lists of the mailing lists
Florent Bruneau [Sun, 3 Oct 2010 20:27:35 +0000 (22:27 +0200)]
Add the list of the groups of the user and the lists of the mailing lists
of the user on admin/user.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoAdd get_all_user_lists() to MM RPC.
Florent Bruneau [Sun, 3 Oct 2010 20:14:42 +0000 (22:14 +0200)]
Add get_all_user_lists() to MM RPC.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoImproves user unsubscription.
Florent Bruneau [Sun, 3 Oct 2010 19:40:00 +0000 (21:40 +0200)]
Improves user unsubscription.

 - unsubscription does not clear the content of the profile by default
 - account not attached to a profile can be definitely removed from the db

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoAdd link to the administration page of the account, use category instead
Florent Bruneau [Sun, 3 Oct 2010 19:16:29 +0000 (21:16 +0200)]
Add link to the administration page of the account, use category instead
of promo in the "promo" column of the directory.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoUpdate core
Florent Bruneau [Sun, 3 Oct 2010 19:16:26 +0000 (21:16 +0200)]
Update core

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoFix advanced search when soundex is activated.
Florent Bruneau [Sun, 3 Oct 2010 15:43:03 +0000 (17:43 +0200)]
Fix advanced search when soundex is activated.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoHide private fields in advanced search if the user does not have the
Florent Bruneau [Sun, 3 Oct 2010 15:35:03 +0000 (17:35 +0200)]
Hide private fields in advanced search if the user does not have the
directory_private permission.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoEnsure dead users are not displayed in X.net directories. Moreover, since
Florent Bruneau [Sun, 3 Oct 2010 15:15:28 +0000 (17:15 +0200)]
Ensure dead users are not displayed in X.net directories. Moreover, since
promotion groups are built at 'user addition in db' time, do not show not
registered users in this groups.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoInnoDB + UTF8.
Florent Bruneau [Sun, 3 Oct 2010 13:36:34 +0000 (15:36 +0200)]
InnoDB + UTF8.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoNaming convention + vim modeline.
Florent Bruneau [Sun, 3 Oct 2010 10:43:53 +0000 (12:43 +0200)]
Naming convention + vim modeline.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoWhen displaying members of a lists, sort by category, not by promotion.
Florent Bruneau [Sun, 3 Oct 2010 10:36:58 +0000 (12:36 +0200)]
When displaying members of a lists, sort by category, not by promotion.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoAdd support for 'lists' permission in the list.rpc.
Florent Bruneau [Sun, 3 Oct 2010 10:25:26 +0000 (12:25 +0200)]
Add support for 'lists' permission in the list.rpc.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoMerge branch 'platal-1.0.0'
Florent Bruneau [Sun, 3 Oct 2010 10:05:51 +0000 (12:05 +0200)]
Merge branch 'platal-1.0.0'

13 years agoFix validation of mailing lists.
Florent Bruneau [Sun, 3 Oct 2010 10:02:51 +0000 (12:02 +0200)]
Fix validation of mailing lists.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoAdd make up and make update (update the working copy).
Florent Bruneau [Sun, 3 Oct 2010 08:56:24 +0000 (10:56 +0200)]
Add make up and make update (update the working copy).

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoIntegration of new features for admin > payments :
Damien Bobillot [Sun, 3 Oct 2010 04:34:23 +0000 (06:34 +0200)]
Integration of new features for admin > payments :
- view transactions
- manage bank account numbers (RIBs)
- reconcilation between bank data and platal database
- manage money transfers towards groups
- manage the list of payment methods

13 years agoFix signature in moderation mail template.
Florent Bruneau [Sat, 2 Oct 2010 10:35:36 +0000 (12:35 +0200)]
Fix signature in moderation mail template.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoUse raw variants of XDB calls in UserFilter.
Florent Bruneau [Fri, 1 Oct 2010 14:44:52 +0000 (16:44 +0200)]
Use raw variants of XDB calls in UserFilter.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoUpdate core
Florent Bruneau [Fri, 1 Oct 2010 14:23:45 +0000 (16:23 +0200)]
Update core

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoSmarty's {profile} function now prints the category instead of the promo.
Florent Bruneau [Fri, 1 Oct 2010 12:06:10 +0000 (14:06 +0200)]
Smarty's {profile} function now prints the category instead of the promo.

For users with a promotion this does not change anything, for others this
adds useful information. Example:
 DUCHMOL Thierry (Secrétariat de l'AX)
 BRUNEAU Florent (X2003)
 DURET Brigitte (Personnel de l'X)

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoAdd User::category().
Florent Bruneau [Fri, 1 Oct 2010 12:04:10 +0000 (14:04 +0200)]
Add User::category().

The category is:
 * the promotion if the user have one
 * the description of the type of the user's account.

Add default description for already defined user account types (this
description can be edited through the admin/account/types page).

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoMinor fixes of account administration pages.
Florent Bruneau [Fri, 1 Oct 2010 12:02:29 +0000 (14:02 +0200)]
Minor fixes of account administration pages.

 * Don't try to clear the profile of the user when the user has no associated
profile.
 * Fix inverted firstname <-> lastname in account creation form

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoUpdate core
Florent Bruneau [Fri, 1 Oct 2010 11:52:31 +0000 (13:52 +0200)]
Update core

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoFix update scripts.
Florent Bruneau [Fri, 1 Oct 2010 10:20:58 +0000 (12:20 +0200)]
Fix update scripts.

Warning, this disable some foreign keys definition that didn't work. The
disabled keys are commented in 11_jobs and 12_profiles.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoFix some texts in profile edition.
Florent Bruneau [Fri, 1 Oct 2010 08:19:38 +0000 (10:19 +0200)]
Fix some texts in profile edition.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoFix advanced search for sections.
Raphaël Barrois [Thu, 30 Sep 2010 22:15:21 +0000 (00:15 +0200)]
Fix advanced search for sections.

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
13 years agoAdd simple script to allow for exporting database structure.
Raphaël Barrois [Tue, 28 Sep 2010 00:35:32 +0000 (02:35 +0200)]
Add simple script to allow for exporting database structure.

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
13 years agoAddress countryId field should be null if no country was found.
Stéphane Jacob [Thu, 30 Sep 2010 17:05:21 +0000 (19:05 +0200)]
Address countryId field should be null if no country was found.

Signed-off-by: Stéphane Jacob <sj@m4x.org>
13 years agoDon't display jobs marked as 'private' when directory_private permission
Florent Bruneau [Thu, 30 Sep 2010 14:10:03 +0000 (16:10 +0200)]
Don't display jobs marked as 'private' when directory_private permission
is missing.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoDon't display addresses marked as 'private' when directory_private
Florent Bruneau [Thu, 30 Sep 2010 14:09:37 +0000 (16:09 +0200)]
Don't display addresses marked as 'private' when directory_private
permission is missing.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoAX enabled version of the first page of the profile edition.
Florent Bruneau [Thu, 30 Sep 2010 12:15:09 +0000 (14:15 +0200)]
AX enabled version of the first page of the profile edition.

If the profile editor does not have directory_private privileges, hide
private informations.

Note: use <input type="hidden" /> to hide some informations without
breaking the code of the backend. I know this does not hide anything
to somebody who knows html, but remember: this is for the secretaries
of the AX... We can certainly do better in the future, but this requires
some hacking in the php code for phones, networking, addresses, jobs and
I'm too lazy for it.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoMinor comment improvement for UFC_AccountPerm
Raphaël Barrois [Wed, 29 Sep 2010 14:47:37 +0000 (16:47 +0200)]
Minor comment improvement for UFC_AccountPerm

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
13 years agoAdd UFC_AccountPerm.
Florent Bruneau [Wed, 29 Sep 2010 14:26:43 +0000 (16:26 +0200)]
Add UFC_AccountPerm.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoDisable mail-related reminders when the user has an account without email.
Florent Bruneau [Wed, 29 Sep 2010 13:51:01 +0000 (15:51 +0200)]
Disable mail-related reminders when the user has an account without email.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoShow only 'public' groups on the profile.
Florent Bruneau [Wed, 29 Sep 2010 12:47:02 +0000 (14:47 +0200)]
Show only 'public' groups on the profile.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoAdd User::isMyProfile($other).
Florent Bruneau [Wed, 29 Sep 2010 12:24:35 +0000 (14:24 +0200)]
Add User::isMyProfile($other).

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoDisplay an error message when a phone number is invalid.
Florent Bruneau [Wed, 29 Sep 2010 08:55:24 +0000 (10:55 +0200)]
Display an error message when a phone number is invalid.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoTelephone validation was triggering an invalid error when the profile
Florent Bruneau [Tue, 28 Sep 2010 13:46:57 +0000 (15:46 +0200)]
Telephone validation was triggering an invalid error when the profile
contains only the default blank phone number in the main page of
profile/edit.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoAllow edition of the death date in the profile edition page.
Florent Bruneau [Tue, 28 Sep 2010 13:32:42 +0000 (15:32 +0200)]
Allow edition of the death date in the profile edition page.

Note: for ethical reasons, the user cannot edit his own death date.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoMake profile edition link available from minifiches and profile when the
Florent Bruneau [Tue, 28 Sep 2010 12:44:09 +0000 (14:44 +0200)]
Make profile edition link available from minifiches and profile when the
current user have edit_directory permissions.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoUse correct passwords for banana (Closes #1247)
Raphaël Barrois [Mon, 27 Sep 2010 21:21:12 +0000 (23:21 +0200)]
Use correct passwords for banana (Closes #1247)

Commit ad59fc86 removed the distinction between banana->web_pass (used
for user 'web') and banana->password (used for real users accessing the
site)

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
13 years agoFix UFBF_AdminArea
Raphaël Barrois [Sun, 26 Sep 2010 21:53:45 +0000 (23:53 +0200)]
Fix UFBF_AdminArea

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
13 years agoUpdate modules/search to handle invalid queries
Raphaël Barrois [Sun, 26 Sep 2010 21:53:22 +0000 (23:53 +0200)]
Update modules/search to handle invalid queries

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
13 years agoFix advanced search 'form cleanup' JS
Raphaël Barrois [Sun, 26 Sep 2010 17:00:54 +0000 (19:00 +0200)]
Fix advanced search 'form cleanup' JS

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
13 years agoFix Address->hasFlag for non-profile addresses
Raphaël Barrois [Sun, 26 Sep 2010 16:26:56 +0000 (18:26 +0200)]
Fix Address->hasFlag for non-profile addresses

Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
13 years agoFix alphabetic order.
Florent Bruneau [Mon, 27 Sep 2010 15:29:47 +0000 (17:29 +0200)]
Fix alphabetic order.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoReorganize the preference page in two panels in order to have something
Florent Bruneau [Mon, 27 Sep 2010 15:21:19 +0000 (17:21 +0200)]
Reorganize the preference page in two panels in order to have something
usable by user without an email redirection.

The two panels are:
 * site settings containing settings available to all users:
   - skins
   - password
   - mail format
   - rss
 * service settings: link to pages with settings for:
   - email
   - web redirect
   - nntp/smtp password

I hope the new page to be clearer than the previous version.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoFix query in "My Groups" page.
Florent Bruneau [Mon, 27 Sep 2010 14:20:48 +0000 (16:20 +0200)]
Fix query in "My Groups" page.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoRemove ValidateIterator, replaced by Validate::iterate().
Florent Bruneau [Mon, 27 Sep 2010 14:07:03 +0000 (16:07 +0200)]
Remove ValidateIterator, replaced by Validate::iterate().

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
13 years agoDeletes all references to sectors as they have been replaced by jobterms.
Stéphane Jacob [Mon, 27 Sep 2010 08:15:44 +0000 (10:15 +0200)]
Deletes all references to sectors as they have been replaced by jobterms.

Signed-off-by: Stéphane Jacob <sj@m4x.org>