summaryrefslogtreecommitdiffstats
path: root/apps/files/l10n/sr.json
Commit message (Expand)AuthorAgeFilesLines
* [tx-robot] updated from transifexNextcloud bot2018-11-071-1/+3
* [tx-robot] updated from transifexNextcloud bot2018-10-291-0/+1
* [tx-robot] updated from transifexNextcloud bot2018-10-231-0/+1
* [tx-robot] updated from transifexNextcloud bot2018-10-101-1/+1
* [tx-robot] updated from transifexNextcloud bot2018-10-051-0/+1
* [tx-robot] updated from transifexNextcloud bot2018-10-021-1/+1
* [tx-robot] updated from transifexNextcloud bot2018-10-011-0/+1
* [tx-robot] updated from transifexNextcloud bot2018-09-271-1/+1
* [tx-robot] updated from transifexNextcloud bot2018-08-291-0/+1
* [tx-robot] updated from transifexNextcloud bot2018-08-231-1/+0
* [tx-robot] updated from transifexNextcloud bot2018-07-281-0/+2
* [tx-robot] updated from transifexNextcloud bot2018-07-251-4/+4
* [tx-robot] updated from transifexNextcloud bot2018-07-181-6/+5
* [tx-robot] updated from transifexNextcloud bot2018-07-101-0/+1
* [tx-robot] updated from transifexNextcloud bot2018-06-191-3/+3
* [tx-robot] updated from transifexNextcloud bot2018-06-141-0/+1
* [tx-robot] updated from transifexNextcloud bot2018-06-091-0/+1
* [tx-robot] updated from transifexNextcloud bot2018-03-141-0/+6
* [tx-robot] updated from transifexNextcloud bot2018-03-011-0/+1
* [tx-robot] updated from transifexNextcloud bot2018-02-021-1/+5
* [tx-robot] updated from transifexNextcloud bot2018-02-011-20/+1
* [tx-robot] updated from transifexNextcloud bot2018-01-051-0/+3
* [tx-robot] updated from transifexNextcloud bot2017-11-201-4/+4
* [tx-robot] updated from transifexNextcloud bot2017-11-121-0/+3
* [tx-robot] updated from transifexNextcloud bot2017-11-091-1/+1
* [tx-robot] updated from transifexNextcloud bot2017-10-271-0/+1
* [tx-robot] updated from transifexNextcloud bot2017-10-261-0/+3
* [tx-robot] updated from transifexNextcloud bot2017-10-251-1/+0
* [tx-robot] updated from transifexNextcloud bot2017-10-241-1/+0
* [tx-robot] updated from transifexNextcloud bot2017-10-181-0/+1
* [tx-robot] updated from transifexNextcloud bot2017-09-291-47/+100
* [tx-robot] updated from transifexNextcloud bot2016-10-041-2/+2
* [tx-robot] updated from transifexJenkins for ownCloud2016-05-151-0/+2
* [tx-robot] updated from transifexJenkins for ownCloud2016-05-141-1/+0
* [tx-robot] updated from transifexJenkins for ownCloud2016-05-131-1/+1
* [tx-robot] updated from transifexJenkins for ownCloud2016-03-241-1/+0
* [tx-robot] updated from transifexJenkins for ownCloud2016-01-211-2/+0
* [tx-robot] updated from transifexJenkins for ownCloud2015-12-121-0/+2
* [tx-robot] updated from transifexJenkins for ownCloud2015-11-241-20/+4
* [tx-robot] updated from transifexJenkins for ownCloud2015-11-131-5/+3
* [tx-robot] updated from transifexJenkins for ownCloud2015-10-111-0/+8
* [tx-robot] updated from transifexJenkins for ownCloud2015-09-281-1/+3
* [tx-robot] updated from transifexJenkins for ownCloud2015-09-081-9/+8
* [tx-robot] updated from transifexJenkins for ownCloud2015-08-251-6/+4
* [tx-robot] updated from transifexJenkins for ownCloud2015-07-291-0/+2
* [tx-robot] updated from transifexJenkins for ownCloud2015-06-111-0/+2
* [tx-robot] updated from transifexJenkins for ownCloud2015-04-271-0/+1
* [tx-robot] updated from transifexJenkins for ownCloud2015-04-141-3/+1
* [tx-robot] updated from transifexJenkins for ownCloud2015-04-031-2/+2
* [tx-robot] updated from transifexJenkins for ownCloud2015-03-311-0/+1
heck if the user needs a unique target $select->select('*') ->from('`*PREFIX*share`') ->where($select->expr()->andX( $select->expr()->eq('`share_type`', ':shareType'), $select->expr()->eq('`share_with`', ':shareWith') )) ->setParameter('shareType', self::SHARE_TYPE_GROUP) ->setParameter('shareWith', $arguments['gid']); $result = $select->execute(); while ($item = $result->fetch()) { $itemTarget = Helper::generateTarget( $item['item_type'], $item['item_source'], self::SHARE_TYPE_USER, $arguments['uid'], $item['uid_owner'], null, $item['parent'] ); if ($item['item_type'] === 'file' || $item['item_type'] === 'folder') { $fileTarget = Helper::generateTarget( $item['item_type'], $item['file_target'], self::SHARE_TYPE_USER, $arguments['uid'], $item['uid_owner'], null, $item['parent'] ); } else { $fileTarget = null; } // Insert an extra row for the group share if the item or file target is unique for this user if ( ($fileTarget === null && $itemTarget != $item['item_target']) || ($fileTarget !== null && $fileTarget !== $item['file_target']) ) { self::$updateTargets[$arguments['gid']][] = [ '`item_type`' => $insert->expr()->literal($item['item_type']), '`item_source`' => $insert->expr()->literal($item['item_source']), '`item_target`' => $insert->expr()->literal($itemTarget), '`file_target`' => $insert->expr()->literal($fileTarget), '`parent`' => $insert->expr()->literal($item['id']), '`share_type`' => $insert->expr()->literal(self::$shareTypeGroupUserUnique), '`share_with`' => $insert->expr()->literal($arguments['uid']), '`uid_owner`' => $insert->expr()->literal($item['uid_owner']), '`permissions`' => $insert->expr()->literal($item['permissions']), '`stime`' => $insert->expr()->literal($item['stime']), '`file_source`' => $insert->expr()->literal($item['file_source']), ]; } } // re-setup old filesystem state if($currentUserID !== $arguments['uid']) { \OC_Util::tearDownFS(); if($currentUserID !== '') { \OC_Util::setupFS($currentUserID); } } } /** * Function that is called after a user is added to a group. * add unique target for the user if needed * @param array $arguments */ public static function post_addToGroup($arguments) { /** @var \OC\DB\Connection $db */ $db = \OC::$server->getDatabaseConnection(); $insert = $db->createQueryBuilder(); $insert->insert('`*PREFIX*share`'); if (isset(self::$updateTargets[$arguments['gid']])) { foreach (self::$updateTargets[$arguments['gid']] as $newTarget) { $insert->values($newTarget); $insert->execute(); } unset(self::$updateTargets[$arguments['gid']]); } } /** * Function that is called after a user is removed from a group. Shares are cleaned up. * @param array $arguments */ public static function post_removeFromGroup($arguments) { $sql = 'SELECT `id`, `share_type` FROM `*PREFIX*share`' .' WHERE (`share_type` = ? AND `share_with` = ?) OR (`share_type` = ? AND `share_with` = ?)'; $result = \OC_DB::executeAudited($sql, array(self::SHARE_TYPE_GROUP, $arguments['gid'], self::$shareTypeGroupUserUnique, $arguments['uid'])); while ($item = $result->fetchRow()) { if ($item['share_type'] == self::SHARE_TYPE_GROUP) { // Delete all reshares by this user of the group share Helper::delete($item['id'], true, $arguments['uid']); } else { Helper::delete($item['id']); } } } /** * Function that is called after a group is removed. Cleans up the shares to that group. * @param array $arguments */ public static function post_deleteGroup($arguments) { $sql = 'SELECT `id` FROM `*PREFIX*share` WHERE `share_type` = ? AND `share_with` = ?'; $result = \OC_DB::executeAudited($sql, array(self::SHARE_TYPE_GROUP, $arguments['gid'])); while ($item = $result->fetchRow()) { Helper::delete($item['id']); } } }